Skip to content

Commit

Permalink
docs: Update Flag Manifest description and move important fields to t…
Browse files Browse the repository at this point in the history
…he top of the file.

Signed-off-by: Florin-Mihai Anghel <[email protected]>
  • Loading branch information
anghelflorinm committed Aug 26, 2024
1 parent 19aad11 commit 02c899a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/schema/v0/flag_manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
{
"$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
}
},
"required": ["flags"],
"$defs": {
"flag": {
"oneOf": [
Expand Down Expand Up @@ -101,22 +118,5 @@
},
"additionalProperties": false
}
},
"title": "Flag Manifest",
"description": "Manifest meant to describe the flags of one flag configuration",
"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"]
}
}

0 comments on commit 02c899a

Please sign in to comment.