-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(converter): add Reference Object removal support in security-sch…
…eme-type plugin (#4001) This change is specific to openapi-3-1-to-openapi-3-0-3 strategy. Refs #4000
- Loading branch information
Showing
4 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...i-3-1-to-openapi-3-0-3/refractor-plugins/security-scheme-type/__snapshots__/index.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...1-to-openapi-3-0-3/refractor-plugins/security-scheme-type/fixtures/reference-objects.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/foo": { | ||
"get": { | ||
"summary": "foo", | ||
"operationId": "foo", | ||
"security": [ | ||
{ | ||
"mutualTLS-scheme2": [ | ||
"read", | ||
"write" | ||
] | ||
}, | ||
{ | ||
"oauth2-scheme2": [ | ||
"read", | ||
"write" | ||
] | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "foo" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"mutualTLS-scheme1": { | ||
"$ref": "#/components/securitySchemes/mutualTLS-scheme2" | ||
}, | ||
"apiKey-scheme1": { | ||
"$ref": "#/components/securitySchemes/apiKey-scheme2" | ||
}, | ||
"mutualTLS-scheme2": { | ||
"type": "mutualTLS", | ||
"name": "mutualTLS-scheme", | ||
"in": "header" | ||
}, | ||
"apiKey-scheme2": { | ||
"type": "oauth2", | ||
"name": "oauth2-scheme", | ||
"in": "header" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters