marshmallow-jsonschema icon indicating copy to clipboard operation
marshmallow-jsonschema copied to clipboard

Feature request: Support schemas created with marshmallow-oneofschema

Open adamtheturtle opened this issue 3 years ago • 1 comments

  • 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 avatar Mar 08 '21 18:03 adamtheturtle

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!

fuhrysteve avatar Mar 10 '21 00:03 fuhrysteve