You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to use Marshmallow Schema to ensure validity of serialized JSON objects. A delete event from #392 is a proof of concept for this. Apart from ensuring the schema, it would also remove a need for manual formatting of DateTime values.
Possible caveats:
Small change the output format of the DateTimes: +00:00 for timezone instead of Z. Still valid ISO 8601.
Necessity to carefully verify that the Marshmallow and Swagger schemas are compatible.
Another option would be to completely ditch schemas for output. The outputs are generates by our code, which is inherently trusted and is covered by tests.
The text was updated successfully, but these errors were encountered:
It is possible to use Marshmallow Schema to ensure validity of serialized JSON objects. A delete event from #392 is a proof of concept for this. Apart from ensuring the schema, it would also remove a need for manual formatting of DateTime values.
Possible caveats:
Another option would be to completely ditch schemas for output. The outputs are generates by our code, which is inherently trusted and is covered by tests.
The text was updated successfully, but these errors were encountered: