Coder Social home page Coder Social logo

More info and tests? about mashumaro HOT 4 CLOSED

spacether avatar spacether commented on June 19, 2024
More info and tests?

from mashumaro.

Comments (4)

Fatal1ty avatar Fatal1ty commented on June 19, 2024 1

@spacether is there something else or we can close this issue?

from mashumaro.

Fatal1ty avatar Fatal1ty commented on June 19, 2024

Please describe which draft you support in your readme

It's already written there. There is support for Draft 2022-12 and OpenAPI 3.1.

Please add tests that use the https://github.com/json-schema-org/JSON-Schema-Test-Suite

Thank you for the link! As far as I understand, these tests are for JSON Schema validators which mashumaro is not currently yet. You can build JSON Schema for Python types but not vice versa. Validation of the data by JSON Schema will be implemented in the foreseeable future, I hope.

from mashumaro.

spacether avatar spacether commented on June 19, 2024

Thanks for explaining that.
How about listing the supported draft closer to the top.
How about listing there that json schema keywords x y z constraints are not enforced and that this library does not run validation?

from mashumaro.

Fatal1ty avatar Fatal1ty commented on June 19, 2024

How about listing there that json schema keywords x y z constraints are not enforced and that this library does not run validation?

I don't think this is necessary at this stage because all the constraints are currently located in separate mashumaro.jsonschema.annotations subpackage which is used only for JSON Schema generation. I'm planning to move them to mashumaro.core or somewhere else when they will be not just annotations but instructions for validation which will be performed during deserialization.

How about listing the supported draft closer to the top.

I will reorganize README when JSON Schema constraints will be used not only for generation but also for validation. For now, I think, it is enough that there is a word "generation" in the key features at the top.

from mashumaro.

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.