From 71417fb5ad5a76042dbb1862d59ef25c84bf67f9 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Thu, 12 Nov 2026 10:46:16 -0700 Subject: [PATCH] add a test to confirm mediaType description is invalid see #5593 --- tests/schema/fail/media-type-description.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/schema/fail/media-type-description.yaml diff --git a/tests/schema/fail/media-type-description.yaml b/tests/schema/fail/media-type-description.yaml new file mode 100644 index 0000000000..9919db9883 --- /dev/null +++ b/tests/schema/fail/media-type-description.yaml @@ -0,0 +1,11 @@ +openapi: 3.2.0 +info: + title: API + version: 1.0.0 +components: + mediaTypes: + description_not_allowed: + description: | + we added 'description' to the schema in 3.2.0 but it was not added to the specification. + it will be added for real in 3.3.0. + schema: {}