Closed elmajime closed 3 years ago
Fun, I like to debug new things like this, let me check. Maybe standard-version problem?
Could you provide an instance which fails?
For me it fails at the "set_root_schema". You can use any gltf file I suppose, but can't provide you with any as they are internal... Oh and the entry file of the schema is glTF.schema.json
I checked, the schema is draft4. This library works with the draft7-spec.
One thing I found was the "exclusiveMinimum": true
in camera.orthographic.schema.json. In draft-7 exclusiveMinimum
expects a number. See here: https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#page-9
I think if you correct these, the schema will work.
Ok great thank you for your help ! I guess I'm heading to the gltf repo now to notice them about this ^^"
Feel free to link their issue here.
Ok after scrolling through the issues on their github it seems they might not change this for a while. I suppose you are not planning to integrate the draft 04 support you had in version one anytime soon right? I'll have to switch to version 1 I suppose.
Don't use version 1. It requires and old nlohmann. Can you just change the schema? remove min/maximum
and replace it with exclusiveMin/Maximum
.
These are not my schemas, they are Khronos Schemas (the ones that created OpenGL) and the Gltf format (based on Json) is widely used for 3D content so we have to stick to the specification. I'm abandonning for now, maybe will look at your code some times and see if it could handle draft-04 somehow with minor evolutions. Thanks a lot !
I have to create a validator for our automated tests regarding the gltf2.0 files that we generate. But the library tells me there is a problem with the provided schema:
At first I thought I did something wrong but then I tried using the json-validate app and got the same error. Could it be that the gltf2.0 schemas really have a problem?
The displayed error isn't very usefull but after some work I managed to get something more: at least one subschema has failed, but all of them are required to validate -
unresolved or freed schema-reference /glTFChildOfRootProperty.schema.json #
This appears multiple times after the first error is shown.
schema.zip