marshmallow-jsonschema
marshmallow-jsonschema copied to clipboard
Provide option to use data keys as property name and title
provide option to use data_keys or load_from and dump_to as title
Use as JSONSchema(prefer_data_key=True) to enable
Relates to https://github.com/fuhrysteve/marshmallow-jsonschema/issues/64
Coverage decreased (-0.6%) to 98.675% when pulling bf853faf3f1089db63f4767c307a6a8784020d47 on smith-m:feature/useDataKeys into 3e0891a79d586c49deb75188d9ee1728597d093b on fuhrysteve:master.
Code coverage reduced because data_keys vs load_from / dump_to behavior differs between marshmallow 2 v 3. One statement has been added to differentiate between marshmallow version for this purpose. Current testing does not seem to work for marshmallow v3. Is there a recommended way to test a library across multiple versions of a dependency?
Also, I will add example of this functionality to readme if this will be merged
Looking good! I'll spend some time looking it over later this week!
@smith-m If you can look over and merge this in:
https://github.com/smith-m/marshmallow-jsonschema/pull/1
That should fix the tests I think! It does for me locally, anyways