Skip to content

OpenAPI 3.2: Import JSON Schema content annotations #1001

Open

Description

@CaliLuke

OpenAPI 3.2: Import JSON Schema content annotations

Problem. Importer-only parity gap: DSL metadata and exporter support encoding/media type/contentSchema; importer rejects all three.

Reproduce. Run go test ./internal/openapiimport -run '^TestSchemaGrammarKeywordsAreNeverSilentlyIgnored/contentEncoding$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 schema {type: string, contentEncoding: base64, contentMediaType: application/json, contentSchema: {type: object}}. Existing importer probes: TestSchemaGrammarKeywordsAreNeverSilentlyIgnored cases contentEncoding/contentMediaType/contentSchema.

Expected behavior. Preserve content annotations separately from Loom's wire carrier and runtime validation; add import-render-regenerate parity for scalar, byte, and nested content schema cases without assuming encoding metadata validates payload content.

Evidence at revision 98131b0.

Specification. OAS 3.2 §4.24.1 (base vocabulary) and §4.24.4

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