Comments (5)
@TheTeaCat workaround for now is jsonschema<=4.19.0
from openapi-schema-validator.
Facing the same issue right now. Was a result of the following commit which renamed _legacy_validators
to _legacy_keywords
: python-jsonschema/jsonschema@9313230
from openapi-schema-validator.
Is there a reason we need to access a private API here?
from openapi-schema-validator.
Some OpenAPI schema keywords (such as anyOf, oneOf, allOf) are extended versions of Draft ones.
from openapi-schema-validator.
Some OpenAPI schema keywords (such as anyOf, oneOf, allOf) are extended versions of Draft ones.
I've just noticed both the private usage and this issue -- there's no reason to use private APIs even if this is the case. There's perfectly public APIs for doing this, it's e.g. Draft202012Validator.VALIDATORS["anyOf"]
etc., which get you the JSON Schema Draft 2020-12 implementation of that keyword. That's documented in the note for jsonschema.validators.extend
though let me know if there's an even more obvious place you would have looked, as documentation is always lacking.
And please always raise such things even if there were missing APIs -- private indeed means private and can change at any time.
from openapi-schema-validator.
Related Issues (20)
- Validate byte properly
- Inner any of type mismatch not raising error
- Validating schema using yaml file HOT 2
- Nullable Strings are not recognized, incorrect check for None if type is string
- OAS30Validator validates readonly/writeonly incorectly
- Validate doesnt seem to match schema correctly? HOT 3
- How to resolve local references with jsonschema/referencing HOT 12
- Support for scientific notation HOT 3
- test_array_prefixitems_invalid[value0] failing on 0.6.2 HOT 2
- Incompatible with jsonschema 4.10.0 HOT 3
- Subclassing JSONSchema validator class with OAS30Validator HOT 1
- Redundant runtime dependency on `attrs`
- 0.4.2 test failures: tests/integration/test_validators.py::TestOAS{30,31}Validator::test_format_checkers HOT 1
- OpenAPI 3.0 Validator allows byte as string type
- OpenAPI 3.0 list of types raises TypeError not SchemaError HOT 1
- Formats raise error for other types
- AttributeError: module 'jsonschema._utils' has no attribute 'load_schema' HOT 2
- ERROR in validation: ... validation error: '2023-03-23 13:35:45' is not a 'date-time' - 'timestamp' HOT 2
- `readOnly` / `writeOnly` support for OpenAPI 3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-schema-validator.