diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c1886ede2..5f566abf49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.31.3](https://github.com/flipt-io/flipt/releases/tag/v1.31.1) - 2023-11-22 + +### Fixed + +- Bad release of 1.31.2 causing the fixes in 1.31.1 to get dropped + +## [v1.31.2](https://github.com/flipt-io/flipt/releases/tag/v1.31.2) - 2023-11-21 + +### Fixed + +- Make CUE schema more permissive and accepts arrays, as well as objects under variant attachments (#2422) + ## [v1.31.1](https://github.com/flipt-io/flipt/releases/tag/v1.31.1) - 2023-11-16 ### Fixed diff --git a/internal/cue/flipt.cue b/internal/cue/flipt.cue index b9a475314e..636f590dbc 100644 --- a/internal/cue/flipt.cue +++ b/internal/cue/flipt.cue @@ -31,7 +31,7 @@ close({ key: string & =~"^.+$" name?: string & =~"^.+$" description?: string - attachment: {...} | *null + attachment: {...} | [...] | *null } #RuleSegment: { diff --git a/internal/cue/testdata/valid.yaml b/internal/cue/testdata/valid.yaml index f4e11d4697..e05848f80c 100644 --- a/internal/cue/testdata/valid.yaml +++ b/internal/cue/testdata/valid.yaml @@ -10,6 +10,15 @@ flags: - key: flipt name: flipt description: I'm a description. + - key: withAttachmentObject + name: With Attachment Object + attachment: + an: Object + - key: withAttachmentArray + name: With Attachment Array + attachment: + - an + - array rules: - segment: internal-users distributions: