3.6.0
New features
- Add a
safir.models.ErrorLocation
enum holding valid values for the first element of theloc
array insafir.models.ErrorModel
. Due to limitations in Python typing,loc
is not type-checked against this enum, but it may be useful to applications constructing FastAPI-compatible error messages. - Add
safir.datetime.current_datetime
to get a normalizeddatetime
object representing the current date and time. - Add
safir.datetime.isodatetime
andsafir.datetime.parse_isodatetime
to convert to and from the most useful form of ISO 8601 dates, used by both Kubernetes and the IVOA UWS standard. Also addsafir.pydantic.normalize_isodatetime
to accept only that same format as input to a Pydantic model with adatetime
field.
What's Changed
- [neophile] Update dependencies by @sqrbot in #133
- DM-37589: Add ErrorLocation enum to models by @rra in #132
- DM-37589: Add datetime utility functions by @rra in #134
- DM-37589: Fix example for normalize_isodatetime by @rra in #135
- [neophile] Update dependencies by @sqrbot in #136
- DM-37760: Change the change log format by @rra in #137
- DM-37760: Prepare for 3.6.0 release by @rra in #138
Full Changelog: 3.5.0...3.6.0