-
Notifications
You must be signed in to change notification settings - Fork 0
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
boon vs. jsonschema? #20
Comments
Hi @gadomski , The project uses Boon instead of JSON Schema primarily for its lightweight nature and performance benefits, which align better with the parsing and validation requirements of the CQL2 filter language. JSON Schema’s complexity and blocking reference resolution may introduce unnecessary overhead. Boon offers a simpler, more efficient alternative, enhancing the overall development experience for this specific use case. |
Thanks @lovrozagar! Curious about
The jsonschema benchmarks page has jsonschema on rough parity with boon, with speedups in some cases. Obviously, benchmarks should be taken with significant salt 🧂 , and so I'd be interested to see other comparisons. Do any exist from the boon side (I did a brief search and couldn't find any)?
I think that's not a problem for us in cql2-rs because we know we won't need to validate any unknown schemas. Again, not arguing for or against necessarily, just want to make sure I understand the decision space. |
jsonschema doesn't fully support json schema 2020-12 and wasn't able to use the cql2.json schema and boon worked fine with it |
Curiosity question, was there a reason for picking boon over jsonschema? I don't have a strong preference, but jsonschema does feel a bit more built-out and mature. Disclosure: I've used jsonschema in https://github.com/stac-utils/stac-rs and have my issues w/ it (mostly it's blocking-only reference resolution) but it's fit for purpose, at least.
The text was updated successfully, but these errors were encountered: