Open smith-m opened 6 years ago
Nice catch!
I'm afraid I won't be able to get to it for quite some time.
But in case you or anyone else are inclined to take a stab at fixing it, I suspect the solution is changing our usage of field.name
to something else that includes load_from
and all that:
I'd be happy to review and merge any pull requests w/ some tests to prove it works!
JSONSchema should support to use of load_from or dump_to (or the equivalent in marshmallow 3)
for example:
Currently this dumps to
In this case, the correct json schema of our model is the one that represents the serialized object, not the python dictionary/object behind the schema. So