diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue index 11777769e..078d37e2e 100644 --- a/config/flipt.schema.cue +++ b/config/flipt.schema.cue @@ -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 diff --git a/config/flipt.schema.json b/config/flipt.schema.json index dae02fac8..f06e4069b 100644 --- a/config/flipt.schema.json +++ b/config/flipt.schema.json @@ -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",