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 local $defs and references within a schema resource #999
OpenAPI 3.2: Support local $defs and references within a schema resource
Problem. Importer and generation gap for same-resource JSON Schema definitions. External-document and document-level reference resolution are covered separately.
Reproduce. Run go test ./internal/openapiimport -run '^TestSchemaGrammarKeywordsAreNeverSilentlyIgnored/\$defs$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 schema resource { $defs: {Name: {type: string}}, $ref: '#/$defs/Name' } embedded in a component or operation schema. Existing rejection probe: TestSchemaGrammarKeywordsAreNeverSilentlyIgnored case $defs.
Expected behavior. Preserve same-resource $defs and local fragment references through import and regeneration, including nested and recursive references through representable object/property positions. Exclude external document loading and mandatory collection-only cycles, which are separate capabilities.
Activity