Git Product home page Git Product logo

Comments (5)

rochacbruno avatar rochacbruno commented on June 16, 2024 6

@TheTeaCat workaround for now is jsonschema<=4.19.0

from openapi-schema-validator.

TheTeaCat avatar TheTeaCat commented on June 16, 2024

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.

tucked avatar tucked commented on June 16, 2024

Is there a reason we need to access a private API here?

from openapi-schema-validator.

p1c2u avatar p1c2u commented on June 16, 2024

Some OpenAPI schema keywords (such as anyOf, oneOf, allOf) are extended versions of Draft ones.

from openapi-schema-validator.

Julian avatar Julian commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.