schema-components - v3.7.0
    Preparing search index...

    Type Alias JsonSchemaDialectInfo

    JsonSchemaDialectInfo:
        | { kind: "absent" }
        | { kind: "known"; uri: string; draft: JsonSchemaDraft }
        | { kind: "unknown"; uri: string }

    Result of inspecting a document for the OpenAPI 3.1 jsonSchemaDialect keyword.

    • kind: "absent": the keyword is not declared. The walker assumes Draft 2020-12, which is the spec-defined default.
    • kind: "known": the declared dialect URI matches one of the supported drafts. The corresponding JsonSchemaDraft is returned so the normaliser can route to the matching per-node transforms.
    • kind: "unknown": the keyword is present but its URI does not match any supported draft. The caller should emit an unknown-json-schema-dialect diagnostic and fall back to Draft 2020-12.