diff --git a/docs/schema/v0/flag_manifest.json b/docs/schema/v0/flag_manifest.json index 02699a1..0adceb6 100644 --- a/docs/schema/v0/flag_manifest.json +++ b/docs/schema/v0/flag_manifest.json @@ -1,122 +1,122 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "title": "Flag Manifest", - "description": "Describes a configuration of OpenFeature flags, including info such as their types and default values.", - "type": "object", - "properties": { - "flags": { - "description": "Object containing the flags in the config", - "type": "object", - "patternProperties": { - "^.{1,}$": { - "description": "The definition of one flag", - "$ref": "#/$defs/flag" - } - }, - "additionalProperties": false + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Flag Manifest", + "description": "Describes a configuration of OpenFeature flags, including info such as their types and default values.", + "type": "object", + "properties": { + "flags": { + "description": "Object containing the flags in the config", + "type": "object", + "patternProperties": { + "^.{1,}$": { + "description": "The definition of one flag", + "$ref": "#/$defs/flag" } + }, + "additionalProperties": false + } + }, + "required": ["flags"], + "$defs": { + "flag": { + "oneOf": [ + { + "$ref": "#/$defs/booleanType" + }, + { + "$ref": "#/$defs/stringType" + }, + { + "$ref": "#/$defs/integerType" + }, + { + "$ref": "#/$defs/floatType" + }, + { + "$ref": "#/$defs/objectType" + } + ], + "required": ["flag_type", "default_value"] + }, + "booleanType": { + "type": "object", + "properties": { + "flag_type": { + "type": "string", + "enum": ["boolean"] + }, + "default_value": { + "type": "boolean" + }, + "description": { + "type": "string" + } + }, + "additionalProperties": false }, - "required": ["flags"], - "$defs": { - "flag": { - "oneOf": [ - { - "$ref": "#/$defs/booleanType" - }, - { - "$ref": "#/$defs/stringType" - }, - { - "$ref": "#/$defs/integerType" - }, - { - "$ref": "#/$defs/numberType" - }, - { - "$ref": "#/$defs/objectType" - } - ], - "required": ["flag_type", "default_value"] + "stringType": { + "type": "object", + "properties": { + "flag_type": { + "type": "string", + "enum": ["string"] }, - "booleanType": { - "type": "object", - "properties": { - "flag_type": { - "type": "string", - "enum": ["boolean"] - }, - "default_value": { - "type": "boolean" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false + "default_value": { + "type": "string" }, - "stringType": { - "type": "object", - "properties": { - "flag_type": { - "type": "string", - "enum": ["string"] - }, - "default_value": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false + "description": { + "type": "string" + } + }, + "additionalProperties": false + }, + "integerType": { + "type": "object", + "properties": { + "flag_type": { + "type": "string", + "enum": ["integer"] + }, + "default_value": { + "type": "integer" + }, + "description": { + "type": "string" + } + }, + "additionalProperties": false + }, + "floatType": { + "type": "object", + "properties": { + "flag_type": { + "type": "string", + "enum": ["float"] }, - "integerType": { - "type": "object", - "properties": { - "flag_type": { - "type": "string", - "enum": ["integer"] - }, - "default_value": { - "type": "integer" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false + "default_value": { + "type": "number" }, - "numberType": { - "type": "object", - "properties": { - "flag_type": { - "type": "string", - "enum": ["number"] - }, - "default_value": { - "type": "number" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false + "description": { + "type": "string" + } + }, + "additionalProperties": false + }, + "objectType": { + "type": "object", + "properties": { + "flag_type": { + "type": "string", + "enum": ["object"] }, - "objectType": { - "type": "object", - "properties": { - "flag_type": { - "type": "string", - "enum": ["object"] - }, - "default_value": { - "type": "object" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false - } + "default_value": { + "type": "object" + }, + "description": { + "type": "string" + } + }, + "additionalProperties": false } -} \ No newline at end of file + } +}