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

    Function matchJsonSchemaDraftUri

    • Match a $schema URI string to a known draft. Returns undefined when the URI matches none of the documented Draft 04 – Draft 2020-12 schema URIs (including the known prefix patterns) — callers can use this to distinguish an authoritative match from a silent fallback.

      Parameters

      • uri: string

      Returns JsonSchemaDraft | undefined