Skip to content

Commit a52ab41

Browse files
authored
Merge pull request #5586 from karenetheridge/ether/v3.1-fix-tests
v3.1: fix schema tests
2 parents 551e3df + 1044df4 commit a52ab41

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎tests/schema/pass/operation-object-example.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ openapi: 3.1.0
22
info:
33
title: API
44
version: 1.0.0
5+
components:
6+
securitySchemes:
7+
petstore_auth:
8+
type: http
9+
scheme: basic
510
paths:
611
/pets/{id}:
712
put:
@@ -10,7 +15,7 @@ paths:
1015
summary: Updates a pet in the store with form data
1116
operationId: updatePetWithForm
1217
parameters:
13-
- name: petId
18+
- name: id
1419
in: path
1520
description: ID of pet that needs to be updated
1621
required: true

‎tests/schema/pass/security-scheme-object-examples.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ components:
5656
type: openIdConnect
5757
openIdConnectUrl: https://example.com/api/oauth/openid
5858
external:
59-
$ref: 'https://example.com/api/openapi.json#/components/externalDocs/ThingExternalDocs'
59+
$ref: 'https://example.com/api/openapi.json#/components/securitySchemes/ExternalSecurityThing'

‎tests/schema/pass/style-defaults.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ components:
88
name: encoding_object_defaults
99
in: path
1010
content:
11-
encoding_object_defaults: # media type name
11+
text/plain: # media type name
1212
encoding:
1313
no_styles: # property name
1414
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"

0 commit comments

Comments
 (0)