diff --git a/json/flagd-definitions.json b/json/flagd-definitions.json index 162157c..e3d519b 100644 --- a/json/flagd-definitions.json +++ b/json/flagd-definitions.json @@ -1,5 +1,5 @@ { - "$id": "https://flagd.dev/schema/flagd-definitions.json", + "$id": "https://flagd.dev/schema/v0/flagd-definitions.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "flagd Flag Configuration", "description": "Defines flags for use in flagd, including typed variants and rules", diff --git a/json/flagd-definitions.yaml b/json/flagd-definitions.yaml index 0a9f12b..67a3eec 100644 --- a/json/flagd-definitions.yaml +++ b/json/flagd-definitions.yaml @@ -1,4 +1,4 @@ -$id: "https://flagd.dev/schema/flagd-definitions.json" +$id: "https://flagd.dev/schema/v0/flagd-definitions.json" $schema: http://json-schema.org/draft-07/schema# title: flagd Flag Configuration description: Defines flags for use in flagd, including typed variants and rules diff --git a/json/targeting.json b/json/targeting.json index d9d39f6..88867c3 100644 --- a/json/targeting.json +++ b/json/targeting.json @@ -1,5 +1,5 @@ { - "$id": "https://flagd.dev/schema/targeting.json", + "$id": "https://flagd.dev/schema/v0/targeting.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "flagd Targeting", "description": "Defines targeting logic for flagd; a extension of JSONLogic, including purpose-built feature-flagging operations.", @@ -137,7 +137,7 @@ "title": "If Operator", "description": "The if statement takes 3 arguments: a condition (if), what to do if its true (then), and what to do if its false (else). Note that the form accepting more than 3 arguments (if/else) is not supported in flagd; use nesting instead.", "type": "array", - "minItems": 3, + "minItems": 2, "maxItems": 3, "items": { "$ref": "#/$defs/args" diff --git a/json/targeting.yaml b/json/targeting.yaml index 11ac8f9..4feac38 100644 --- a/json/targeting.yaml +++ b/json/targeting.yaml @@ -1,4 +1,4 @@ -$id: "https://flagd.dev/schema/targeting.json" +$id: "https://flagd.dev/schema/v0/targeting.json" $schema: http://json-schema.org/draft-07/schema# title: flagd Targeting description: Defines targeting logic for flagd; a extension of JSONLogic, including @@ -104,7 +104,7 @@ type: object form accepting more than 3 arguments (if/else) is not supported in flagd; use nesting instead.' type: array - minItems: 3 + minItems: 2 maxItems: 3 items: $ref: "#/$defs/args"