Skip to content

Commit

Permalink
Merge pull request #2422 from flipt-io/gm/attach-array
Browse files Browse the repository at this point in the history
test(cue): add failing case for attachment array support
  • Loading branch information
GeorgeMac authored and markphelps committed Nov 21, 2023
1 parent f8cc95c commit 90e50cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cue/flipt.cue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ close({
key: string & =~"^.+$"
name?: string & =~"^.+$"
description?: string
attachment: {...} | *null
attachment: {...} | [...] | *null
}

#RuleSegment: {
Expand Down
9 changes: 9 additions & 0 deletions internal/cue/testdata/valid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 90e50cc

Please sign in to comment.