From ea45a47d3cf9b3fc748bf4241d855a0baad83fa0 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Thu, 9 Jan 2025 15:43:19 -0500 Subject: [PATCH] fixup: ephasis and playground Signed-off-by: Todd Baert --- docs/reference/flag-definitions.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/reference/flag-definitions.md b/docs/reference/flag-definitions.md index 692a61b82..1791a3d4e 100644 --- a/docs/reference/flag-definitions.md +++ b/docs/reference/flag-definitions.md @@ -4,12 +4,6 @@ description: flagd flag definition # Flag Definitions -## Metadata - -Metadata can be defined at both the flag set (as a sibling of [flags](#flags)) and within each flag. -Flag metadata conveys arbitrary information about the flag or flag set, such as a version number, or the business unit that is responsible for the flag. -When flagd resolves flags, the returned [flag metadata](https://openfeature.dev/specification/types/#flag-metadata) is a merged representation of the metadata defined in the flag set, and the metadata defined in the flag, with the metadata defined in the flag taking priority. - ## Flags `flags` is a **required** property. @@ -351,6 +345,13 @@ Example: } ``` +## Metadata + +Metadata can be defined at both the flag set (as a sibling of [flags](#flags)) and within each flag. +Flag metadata conveys arbitrary information about the flag or flag set, such as a version number, or the business unit that is responsible for the flag. +When flagd resolves flags, the returned [flag metadata](https://openfeature.dev/specification/types/#flag-metadata) is a merged representation of the metadata defined in the flag set, and the metadata defined in the flag, with the metadata defined in the flag taking priority. +See the [playground](/playground/?scenario-name=Flag+metadata) for an interactive example. + ## Boolean Variant Shorthand Since rules that return `true` or `false` map to the variant indexed by the equivalent string (`"true"`, `"false"`), you can use shorthand for these cases.