Inspect an OpenAPI 3.1 document for a jsonSchemaDialect declaration.
Per the OpenAPI 3.1 spec, an OpenAPI document may declare the default
JSON Schema dialect for its Schema Objects via the top-level
jsonSchemaDialect URI. Real-world 3.1 documents overwhelmingly omit
the keyword and rely on the spec-defined Draft 2020-12 default — this
helper surfaces the declaration so the normaliser can either honour a
known dialect or emit a diagnostic for an unknown one.
Inspect an OpenAPI 3.1 document for a
jsonSchemaDialectdeclaration.Per the OpenAPI 3.1 spec, an OpenAPI document may declare the default JSON Schema dialect for its Schema Objects via the top-level
jsonSchemaDialectURI. Real-world 3.1 documents overwhelmingly omit the keyword and rely on the spec-defined Draft 2020-12 default — this helper surfaces the declaration so the normaliser can either honour a known dialect or emit a diagnostic for an unknown one.