Skip to content

v0.8.1

Latest

Choose a tag to compare

@loookashow loookashow released this 09 Sep 19:35
a298993

Fixed

  • data_validation_error (HTTP 422) now raises ContentValidationFailed instead of a bare FoxnoseAPIError. This is the code a Flux resource write returns for a schema violation, so the most common way to hit one was not caught by except ContentValidationFailed, and callers had to match on status_code == 422 instead. The errors list and errors_truncated flag are populated from the same detail payload as content_validation_failed, and error_code still reports what the server sent.

Not a breaking change: ContentValidationFailed subclasses FoxnoseAPIError, so existing handlers are unaffected.

Full changelog: https://github.com/FoxNoseTech/foxnose-python/blob/main/docs/changelog.md