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

Feature request: Support schemas created with marshmallow-oneofschema #141

Open
adamtheturtle opened this issue Mar 8, 2021 · 1 comment

Comments

@adamtheturtle
Copy link

adamtheturtle commented Mar 8, 2021

  • Create a Marshmallow schema using marshmallow-oneofschema.
  • Dump a JSON Schema for this new schema.
  • Ideally the whole nested schema would show, and the "type" options would be shown.

Changes needed for this may be similar to code in https://github.com/timakro/apispec-oneofschema.

@adamtheturtle adamtheturtle changed the title Feature request: Support schemas created with https://github.com/marshmallow-code/marshmallow-oneofschema Feature request: Support schemas created with marshmallow-oneofschema Mar 8, 2021
@fuhrysteve
Copy link
Owner

This sounds like a great idea! We use oneofschema for some fancy polymorphic stuff and it works great. I've not looked into how that might work with this library, but PRs are very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants