Skip to content
Advertisement

org.everit.json.schema.SchemaException: #: could not determine version

A SchemaException gets thrown saying the version could not be determined as the title says. The schema version is clearly in the schema. This is all before data validation. Any ideas why this error gets thrown?

My schema is as follows:

JavaScript
JavaScript

JavaScript

Advertisement

Answer

The library doesn’t support draft 2020-12 and 2019-09.

You will have to use draft 7 for now (or use an other library).

Edit: the correct meta-schema URL for draft 7 is "$schema": "https://json-schema.org/draft-07/schema"

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement