biosustain / potion

Flask-Potion is a RESTful API framework for Flask and SQLAlchemy, Peewee or MongoEngine
http://potion.readthedocs.io
Other
488 stars 51 forks source link

Fix a logical error deciding whether to return a patchable schema. #153

Closed bjornt closed 5 years ago

bjornt commented 5 years ago

This partly fixes issue #98, where a field that has io="cr" wouldn't show up in the "create" schema.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 89.08% when pulling dcec4bb72321f481b511d1e96810fe64f067d4f9 on bjornt:patchable-schema-logical-error into 20fb764ebe55588164b4238dff2f1e631cece17a on biosustain:master.

albertodonato commented 5 years ago

@lyschoening any chance this could be merged? potion-client won't work correctly in similar cases otherwise

lyschoening commented 5 years ago

@albertodonato Sorry, been falling behind on following the PRs. Merging now.