From 870e84d5c893df23411873383adc0702d7c528d9 Mon Sep 17 00:00:00 2001 From: Jeremy Blythe Date: Mon, 11 Sep 2023 13:30:13 -0400 Subject: [PATCH] Fixed conditionally_required requirement_level. (#201) --- semantic-conventions/CHANGELOG.md | 2 ++ semantic-conventions/semconv.schema.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/semantic-conventions/CHANGELOG.md b/semantic-conventions/CHANGELOG.md index b6b6ef25..c10e0762 100644 --- a/semantic-conventions/CHANGELOG.md +++ b/semantic-conventions/CHANGELOG.md @@ -6,6 +6,8 @@ Please update the changelog as part of any significant pull request. - Render template-type attributes from yaml files ([#186](https://github.com/open-telemetry/build-tools/pull/186)) +- Fix conditionally_required definition in semconv.schema.json + ([#201](https://github.com/open-telemetry/build-tools/pull/201)) ## v0.20.0 diff --git a/semantic-conventions/semconv.schema.json b/semantic-conventions/semconv.schema.json index 8e5c993a..7e51cca3 100644 --- a/semantic-conventions/semconv.schema.json +++ b/semantic-conventions/semconv.schema.json @@ -349,7 +349,7 @@ { "properties": { "requirement_level": { - "description": "specifies the attribute requirement level. Can be 'required', 'conditionally_required', 'recommended', or 'opt_in'. When omitted, the attribute is 'recommended'. When set to 'conditionally_required', the string provided as MUST specify the conditions under which the attribute is required.", + "description": "specifies the attribute requirement level. Can be 'required', 'conditionally_required', 'recommended', or 'opt_in'. When omitted, the attribute is 'recommended'. When set to 'conditionally_required', the string provided MUST specify the conditions under which the attribute is required.", "oneOf": [ { "const": "required" @@ -361,7 +361,7 @@ "conditionally_required" ], "properties": { - "condition": { + "conditionally_required": { "type": "string" } }