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
OpenAPI 3.2: Import JSON Schema type unions beyond nullable pairs
Problem. Importer-only shape gap: generated Loom unions use oneOf and type nullability uses nullable forms; arbitrary type arrays are blocked rather than mapped.
Reproduce. Run go test ./internal/openapiimport -run '^TestAnalyzeRejectsNonNullableTypeUnions$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 schema {type: [string, integer]} or {type: [string, number, null]}. Existing admission probes cover nullable type union; extend schema admission with non-null and three-member arrays.
Expected behavior. Normalize arbitrary type arrays to a shared union representation without losing branch constraints or nullable identity, and import/render/evaluate/regenerate representative primitive/object/array combinations. Document that exporter may choose semantically equivalent oneOf output.
Activity