Detect the JSON Schema draft version from a schema's $schema URI.
When $schema is absent, uses heuristic keyword detection via
inferJsonSchemaDraft to guess the draft version.
Returns "draft-2020-12" as the final fallback when no heuristic
matches either.
Detect the JSON Schema draft version from a schema's
$schemaURI. When$schemais absent, uses heuristic keyword detection viainferJsonSchemaDraftto guess the draft version. Returns"draft-2020-12"as the final fallback when no heuristic matches either.