Skip to content
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

a jsonschema importer to marshmallow? #1754

Closed
pchtsp opened this issue Feb 22, 2021 · 2 comments
Closed

a jsonschema importer to marshmallow? #1754

pchtsp opened this issue Feb 22, 2021 · 2 comments
Labels

Comments

@pchtsp
Copy link

pchtsp commented Feb 22, 2021

I was wondering if this is something that is seen as interesting for the marshmallow package or is too niche.

We're trying to store all our schemas in jsonschema (to be able to share between front-end / back-end and maybe store schemas in a database as json). On the other hand we already use marshmallow for our backend validation and it would be coherent to keep all the validation of the backend with marshmallow.

As of now, we have a very hacky migration (https://github.com/baobabsoluciones/cornflow-client/blob/master/cornflow_client/schema_manager.py) from one to the other. Is it something that you see developing inside marshmallow in the future? Is this something that has any interest for you? With some guidelines on where to start, maybe I could prepare a PR with a first version...

I'm aware there is a marshmallow -> jsonschema project. I also created an issue there so I'm guessing you're not planning on including those links inside the core marshmallow code?

thanks again!

@mrfroebi
Copy link

@pchtsp while building a flask app, I was also hitting the same obstacle, that we are handling all our schemas as JSON files.

In case, this is something the maintainers think could be a useful enhancement, I would like to support the development.

Thanks for the request, and thanks to the developers for this useful package.

@lafrech
Copy link
Member

lafrech commented May 25, 2021

This is definitely not on the roadmap. In any case, it would be a third-party lib.

Of course, anyone coming up with something is more than welcome to share it here.

@lafrech lafrech closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants