mixer icon indicating copy to clipboard operation
mixer copied to clipboard

support for object generation from marshmallow schema

Open jo-tham opened this issue 8 years ago • 2 comments

Hi,

is there any interest in adding support for generating objects based on marshmallow schema?

https://github.com/marshmallow-code/marshmallow

I took a cursory look - very roughly, it seems a map of schema field types to generator types is needed. what else would be involved?

or perhaps it is practical to use the ORM backend and simply constrain the fields to those used in the marschmallow schema...


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jo-tham avatar Mar 01 '16 18:03 jo-tham

Why not? But I've no time now. But a PR is very appreciated.

klen avatar Mar 01 '16 20:03 klen

thanks @klen - I'm also chatting with factory_boy and marshmallow maintainers and considering a separate library that integrates generators with marshmallow.

glad to make a PR if I decide to go with mixer.

cheers

jo-tham avatar Mar 01 '16 20:03 jo-tham