fuhrysteve / marshmallow-jsonschema

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
MIT License
209 stars 72 forks source link

Marshmallow-mongoenine support #53

Closed macfire closed 5 years ago

macfire commented 6 years ago

Are there any plans to support Marshmallow-Mongoengine ModelSchema feature, which will automatically create a base schema from a model?

I've been using the convenience of Marshmallow-Mongoengine to avoid having to recreate lengthy models into schemas (DRY), but would also to like to use marshmallow-jsonschema.

The basic errors I've receive so far are "unsupported field type <fields.ObjectId>" and "<fields.ReferenceField>". All works fine if I manually create the schemas.

fuhrysteve commented 5 years ago

I'm not familiar with marshmallow-mongoengine (looks like it's moved to here: https://github.com/MongoEngine/marshmallow-mongoengine ), however if there's anything we can do here to improve support for it, I'd be glad to bring those changes in!