Skip to content

3.6.0

Compare
Choose a tag to compare
@rra rra released this 03 Feb 21:27
· 620 commits to main since this release
3.6.0
86d35ae

New features

  • Add a safir.models.ErrorLocation enum holding valid values for the first element of the loc array in safir.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 normalized datetime object representing the current date and time.
  • Add safir.datetime.isodatetime and safir.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 add safir.pydantic.normalize_isodatetime to accept only that same format as input to a Pydantic model with a datetime 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