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

Import/export json-schemas and OpenAPI schemas #421

Open
cosmicBboy opened this issue Feb 19, 2021 · 12 comments
Open

Import/export json-schemas and OpenAPI schemas #421

cosmicBboy opened this issue Feb 19, 2021 · 12 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cosmicBboy
Copy link
Collaborator

cosmicBboy commented Feb 19, 2021

Is your feature request related to a problem? Please describe.
The problem statement here is the same as the one articulated in #420

Describe the solution you'd like
Support the importing of json-schema and Open API data models with the following interface:

import pandera as pa

pandera_schema = pa.io.from_json_schema("path/to/schema.json")
json_schema = pandera_schema.json_schema()

pandera_schema = pa.io.from_open_api_schema("path/to/schema.json")
open_api_schema = pandera_schema.open_api_schema()

NOTE: This should probably be split into to issues, one for JSON schema, another for OpenAPI

For details on modules that would be involved in implementing this feature, see #420 (comment)

Describe alternatives you've considered

  • users implement their own schema importing functions.

Additional context
See the discussion in #420

@cosmicBboy cosmicBboy added the enhancement New feature or request label Feb 19, 2021
@cosmicBboy cosmicBboy added the help wanted Extra attention is needed label Mar 24, 2021
@cosmicBboy cosmicBboy changed the title Import json-schemas and OpenAPI schemas Import/export json-schemas and OpenAPI schemas Sep 15, 2021
@cosmicBboy cosmicBboy changed the title Import/export json-schemas and OpenAPI schemas Import json-schemas and OpenAPI schemas Sep 15, 2021
@cosmicBboy cosmicBboy changed the title Import json-schemas and OpenAPI schemas Import/export json-schemas and OpenAPI schemas Sep 15, 2021
@maxibor
Copy link

maxibor commented Jun 13, 2022

Just a comment to upvote this feature request, it would make make Pandera super nice to use for https://github.com/spaAM-community/ancientmetagenomedir/tree/dev and https://github.com/SPAAM-community/AMDirT

@muppetjones
Copy link

Another comment to upvote. I have JSON schema written for so many things -- would be great to reuse it

@hongha912
Copy link

hongha912 commented Apr 25, 2023

Upvote from me too! We use JSON schema a lot for import/exporting our data.

@GuyAttia
Copy link

Upvote from me as well. We want to use it across different tools which use JSON Schema

@josedaniel-escribano-clarity

Really interested in this feature :)

@toclarity
Copy link

Upvote. Having this feature would be awesome. We have so many JSON Schemas... This would considerably simplify migrating all our validations to Pandera and, thus, make them much more efficient. 🤞

@victorrmclarity
Copy link

Upvote. We need this feature to adapt all of our domain json schema to Panderas

@DaniSancas
Copy link

It would be really helpful to have this feature implemented 🙌

@silviacobo9
Copy link

Another upvote here. This will help a lot on our day to day work

@martingoldthen
Copy link

+1

@adela-molina
Copy link

yes please

@jlrcolmenares
Copy link

this could be really useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests