Skip to content

Commit

Permalink
fix(config): update schema for git storage backend property
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
  • Loading branch information
erka committed Nov 15, 2024
1 parent 39ef97c commit 40e33a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion config/flipt.schema.cue
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ import "strings"
local?: path: string | *"."
git?: {
repository: string
backend?: *"memory" | "local"
backend?: {
type: *"memory" | "local"
path?: string
}
ref?: string | *"main"
ref_type?: *"static" | "semver"
directory?: string
Expand Down
15 changes: 12 additions & 3 deletions config/flipt.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,18 @@
"type": "string"
},
"backend": {
"type": "string",
"enum": ["memory", "local"],
"default": "local"
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": ["memory", "local"],
"default": "memory"
},
"path": {
"type": "string"
}
}
},
"ref": {
"type": "string",
Expand Down

0 comments on commit 40e33a9

Please sign in to comment.