Skip to content

Commit

Permalink
fix: fixes invalid OAI document for unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Jan 29, 2025
1 parent 3c7c894 commit 837f000
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ info:
description: A sample API demonstrating OpenAPI 3.1 features
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
identifier: Apache-2.0
version: 2.0.0
summary: Sample OpenAPI 3.1 API with the latest features
Expand Down Expand Up @@ -93,6 +92,11 @@ components:
- 'null'
- object
description: Dynamic attributes for the pet
securitySchemes:
api_key:
type: apiKey
name: api_key
in: header
security:
- api_key: [ ]
webhooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ info:
license:
name: Apache 2.0
identifier: Apache-2.0 # SPDX license identifier, a new 3.1 feature to define an API's SPDX license expression
url: https://www.apache.org/licenses/LICENSE-2.0.html

# JSON Schema 2020-12 feature
jsonSchemaDialect: "https://json-schema.org/draft/2020-12/schema"
Expand Down Expand Up @@ -89,6 +88,11 @@ paths:
- name
$dynamicAnchor: "addressDef"
components:
securitySchemes:
api_key:
type: apiKey
name: api_key
in: header
schemas:
Pet:
$id: 'https://example.com/schemas/pet.json'
Expand Down

0 comments on commit 837f000

Please sign in to comment.