You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAPI 3.2: Support recursive schemas composed only of collection constructors #1012
OpenAPI 3.2: Support recursive schemas composed only of collection constructors
Problem. Importer-only Go construction limitation. Recursive refs through object fields/arrays/maps work, but mandatory array/map-only cycles cannot be initialized by current DSL constructors.
Reproduce. Run go test ./internal/openapiimport -run '^TestReferencePlanRejectsMandatoryCycles$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 components Node: {type: array, items: {$ref: '#/components/schemas/Node'}}; map analogue uses self-referential additionalProperties. Existing probes: TestReferencePlanRejectsMandatoryCycles and TestAnalyzeRejectsMandatoryReferenceCycles.
Expected behavior. Create a recursive type representation that can initialize collection-only cycles without invalid Go types or unsound placeholders; test import, generated compile, construction, encode/decode, and bounded recursive values.
Activity