diff --git a/CHANGELOG.md b/CHANGELOG.md index f11a7f94..48b816b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.20.0] - 2024-06-05 +### Fixed +- Some schemas in the API used the `format` keyword to mean `pattern`, and thus the patterns they specified were not being + interpreted or enforced. This fixes that. + ## [2.19.0] - 2024-06-05 ### Dependencies - Bumped `certifi` from 2022.12.7 to 2023.7.22 to resolve [SNYK-PYTHON-CERTIFI-5805047 CVE](https://security.snyk.io/vuln/SNYK-PYTHON-CERTIFI-5805047) diff --git a/api/openapi.yaml.in b/api/openapi.yaml.in index c913df56..8072cc77 100644 --- a/api/openapi.yaml.in +++ b/api/openapi.yaml.in @@ -108,7 +108,7 @@ components: type: string description: Age in minutes (e.g. "3m"), hours (e.g. "5h"), days (e.g. "10d"), or weeks (e.g. "2w"). example: 3d - format: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' + pattern: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' minLength: 1 # This allows for over 10 years using the smallest units (minutes) maxLength: 8 @@ -986,7 +986,7 @@ components: Delete complete Sessions that are older than cleanup_completed_session_ttl (in minutes, hours, days, or weeks). 0 disables cleanup behavior. example: 3d - format: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' + pattern: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' minLength: 1 # This allows for over 10 years using the smallest units (minutes) maxLength: 8 @@ -999,7 +999,7 @@ components: The maximum amount of time a Component's actual state is considered valid (in minutes, hours, days, or weeks). 0 disables cleanup behavior for newly booted nodes and instructs bos-state-reporter to report once instead of periodically. example: 6h - format: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' + pattern: '^(0|0[mMhHdDwW]|[1-9][0-9]*[mMhHdDwW])$' minLength: 1 # This allows for over 10 years using the smallest units (minutes) maxLength: 8