Skip to content

Commit

Permalink
fix(config): update schema to support bootstrap token metadata
Browse files Browse the repository at this point in the history
Signed-off-by: George MacRorie <[email protected]>
  • Loading branch information
GeorgeMac committed Jun 11, 2024
1 parent f109d2f commit 5a48f9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/flipt.schema.cue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import "strings"
bootstrap?: {
token?: string
expiration: =~#duration | int
metadata?: [string]: string
}
}

Expand Down Expand Up @@ -163,7 +164,7 @@ import "strings"
#cloud: {
host?: string | *"flipt.cloud"
organization?: string
gateway?: string
gateway?: string
authentication?: {
api_key?: string
}
Expand Down Expand Up @@ -358,9 +359,9 @@ import "strings"
#audit: {
sinks?: {
log?: {
enabled?: bool | *false
file?: string | *""
encoding?: *"" | "json" | "console"
enabled?: bool | *false
file?: string | *""
encoding?: *"" | "json" | "console"
}
webhook?: {
enabled?: bool | *false
Expand Down
4 changes: 4 additions & 0 deletions config/flipt.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
"type": "integer"
}
]
},
"metadata": {
"type": ["object", "null"],
"additionalProperties": true
}
}
}
Expand Down

0 comments on commit 5a48f9a

Please sign in to comment.