Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Update formatter.py #213

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Update formatter.py #213

merged 1 commit into from
Oct 4, 2019

Conversation

rgreinho
Copy link
Member

@rgreinho rgreinho commented Oct 4, 2019

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Description

Pydantic only supports a handful of date and time formats for (de)serialization:
https://pydantic-docs.helpmanual.io/#datetime-types.

This PR adjust the formats in our custom JSON serializer.

This allows us to serialize and deserialize JSON objects.

Checklist:

  • [] I have updated the documentation accordingly
  • [] I have written unit tests

Pydantic only supports a handful of date and time formats for (de)serialization:
https://pydantic-docs.helpmanual.io/#datetime-types.

This PR adjust the formats in our custom JSON serializer to allow us to
leverage pydantic automatic serialization/deserialization.
@rgreinho rgreinho merged commit 1daa369 into master Oct 4, 2019
@rgreinho rgreinho deleted the date-time-json-formats branch October 4, 2019 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant