From 21356203045baa8d67cf227c4e96f673a7c0f2bd Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Mon, 7 Sep 2026 15:39:05 -0700 Subject: [PATCH 1/3] fix schema test that lacks security scheme definitions ..and add an example of a uri reference to a remote security scheme --- tests/schema/pass/operation-object-example.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/schema/pass/operation-object-example.yaml b/tests/schema/pass/operation-object-example.yaml index 9a5c76d0a0..20fc7737c3 100644 --- a/tests/schema/pass/operation-object-example.yaml +++ b/tests/schema/pass/operation-object-example.yaml @@ -2,6 +2,11 @@ openapi: 3.1.0 info: title: API version: 1.0.0 +components: + securitySchemes: + petstore_auth: + type: http + scheme: basic paths: /pets/{id}: put: From bf2fb0364b27bfc0cadc593f81c6fe184ebe70e3 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Thu, 29 Oct 2026 10:39:29 -0700 Subject: [PATCH 2/3] fix some tests, as noted in #5575 - path parameter name did not match - ensure $ref to external object points to the right object type --- tests/schema/pass/operation-object-example.yaml | 2 +- tests/schema/pass/security-scheme-object-examples.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/schema/pass/operation-object-example.yaml b/tests/schema/pass/operation-object-example.yaml index 20fc7737c3..e3b2e74201 100644 --- a/tests/schema/pass/operation-object-example.yaml +++ b/tests/schema/pass/operation-object-example.yaml @@ -15,7 +15,7 @@ paths: summary: Updates a pet in the store with form data operationId: updatePetWithForm parameters: - - name: petId + - name: id in: path description: ID of pet that needs to be updated required: true diff --git a/tests/schema/pass/security-scheme-object-examples.yaml b/tests/schema/pass/security-scheme-object-examples.yaml index 0b0e9900a6..80577bc61f 100644 --- a/tests/schema/pass/security-scheme-object-examples.yaml +++ b/tests/schema/pass/security-scheme-object-examples.yaml @@ -56,4 +56,4 @@ components: type: openIdConnect openIdConnectUrl: https://example.com/api/oauth/openid external: - $ref: 'https://example.com/api/openapi.json#/components/externalDocs/ThingExternalDocs' \ No newline at end of file + $ref: 'https://example.com/api/openapi.json#/components/securitySchemes/ExternalSecurityThing' From 1044df438a8396d95e4ed3fafb34ff4a0d77cc88 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Tue, 3 Nov 2026 15:34:49 -0700 Subject: [PATCH 3/3] fix invalid media-type name --- tests/schema/pass/style-defaults.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/schema/pass/style-defaults.yaml b/tests/schema/pass/style-defaults.yaml index c3942bdc50..0c5618c463 100644 --- a/tests/schema/pass/style-defaults.yaml +++ b/tests/schema/pass/style-defaults.yaml @@ -8,7 +8,7 @@ components: name: encoding_object_defaults in: path content: - encoding_object_defaults: # media type name + text/plain: # media type name encoding: no_styles: # property name x-comment: "style, explode and allowReserved are not present, so contentType is used; no defaults expected as default contentType cannot be determined by the schema"