Skip to content

OpenAPI 3.2: Support JSON Schema anchors and dynamic references within a resource #1022

Open

Description

@CaliLuke

OpenAPI 3.2: Support JSON Schema anchors and dynamic references within a resource

Problem. Import and export gap for schema-resource identity and dynamic reference resolution; excludes document retrieval/remote reference graphs.

Reproduce. Run go test ./internal/openapiimport -run '^TestSchemaGrammarKeywordsAreNeverSilentlyIgnored/\$dynamicRef$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 resource { $id: 'urn:example:node', $dynamicAnchor: 'node', type: 'object', properties: {child: {$dynamicRef: '#node'}} }. Existing rejection probes: TestSchemaGrammarKeywordsAreNeverSilentlyIgnored cases $id/$anchor/$dynamicAnchor/$dynamicRef.

Expected behavior. Preserve same-resource IDs and static/dynamic anchors/references with correct JSON Schema scope through import and regeneration. Cover nested resources and recursive generic shapes. Do not fetch external documents; that behavior belongs to document reference resolution.

Evidence at revision 98131b0.

Specification. OAS 3.2 §4.24.1 and §4.24.7; §4.24.6.2

Activity

  1. added
    enhancement
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions