-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in object detection schema #70
Comments
Ah the prefixItems is a feature of the new draft for this (2020-12 IIRC), so it's actually valid but not backwards compatible. |
should i create a new PR to make the changes? |
What's the actual issue that's happening? |
when i try to validate it throws the following error:
|
How are you trying to validate it? |
I am validating using a draft7validator This is my exact code:
And the data schema is called in the following way:
|
Alright that explains it. This isn't a draft 7 schema and so it isn't understood by validator. A quick check suggests this is a much bigger issue as jsonschema doesn't support draft 2020-12 (although python-jsonschema/jsonschema#817 would add support). I'd hate to say it but it might be necessary to do rewriting of a lot of schema files if support isn't added soon. |
The fix i suggested above works well as my schema gets validated with that fix. So for now should I start with the object detection schema and then move on to other schemas? |
A lot of other changes would be necessary, including to the containers that actually are validating it as a draft 2020-12 schema and would fail with this change. |
As far as i know, only the object detection schema throws this error. this is because all the other models have been validated using draft7validator and none of them threw this error. So I don't think that any other schemas need to be changed |
The actual request schema itself uses the |
So as a solution should we go ahead with jschon or should we change the schemas? |
Changing the schemas now. I like jschon and I think it'll be an option later, but it is still new and I get the sense we might have to deal with bugs. I already have the schemas updated (downdated?) in the draft7 branch and am testing changes to my many containers that expected a 2020-12 schema. |
Fixed. Main now validates against draft7 and the schema branch contains all schemas in a draft 7 format. |
In the dimensions field
needs to be changed to
@JRegimbal tagging you to double-check the modification
The text was updated successfully, but these errors were encountered: