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: Represent null-only domains and typeless constrained schemas #1010
OpenAPI 3.2: Represent null-only domains and typeless constrained schemas
Problem. Importer strict-subset gap: it rejects null-only schemas and typeless assertions. Supporting import requires a shared representation for these instance domains; the current exporter/runtime do not already support arbitrary typeless schemas.
Reproduce. Run go test ./internal/openapiimport -run '^TestAnalyzeRejectsConstrainedSchemaWithoutType$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 component schemas {type: null}, {pattern: '^a'}, and {properties: {x: {type: string}}} without type. Existing probes: TestAnalyzeRejectsConstrainedSchemaWithoutType; empty/never schemas are covered by schema-boolean-false.
Expected behavior. Represent null-only domains and assertions that are valid without an explicit type, preserving the exact accepted JSON values through import, runtime evaluation, and regeneration. Test null against non-null JSON kinds and typeless assertions against strings, numbers, arrays, objects, and null. Empty/false schemas are out of scope.
Activity