-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distinguish LIST-only paths in OpenAPI (#13643)
* Distinguish LIST-only paths in OpenAPI * add changelog * Put enum field inside schema
- Loading branch information
Showing
4 changed files
with
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
sdk: Fixes OpenAPI to distinguish between paths that can do only List, or both List and Read. | ||
``` |
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
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
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,63 @@ | ||
{ | ||
"openapi": "3.0.2", | ||
"info": { | ||
"title": "HashiCorp Vault API", | ||
"description": "HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.", | ||
"version": "<vault_version>", | ||
"license": { | ||
"name": "Mozilla Public License 2.0", | ||
"url": "https://www.mozilla.org/en-US/MPL/2.0" | ||
} | ||
}, | ||
"paths": { | ||
"/foo/{id}": { | ||
"description": "Synopsis", | ||
"x-vault-sudo": true, | ||
"x-vault-displayAttrs": { | ||
"navigation": true | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "format", | ||
"description": "a query param", | ||
"in": "query", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "id", | ||
"description": "id path parameter", | ||
"in": "path", | ||
"schema": { | ||
"type": "string" | ||
}, | ||
"required": true | ||
} | ||
], | ||
"get": { | ||
"operationId": "getFooId", | ||
"tags": ["secrets"], | ||
"summary": "List Summary", | ||
"description": "List Description", | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "list", | ||
"description": "Must be set to `true`", | ||
"required": true, | ||
"in": "query", | ||
"schema": { | ||
"type": "string", | ||
"enum": ["true"] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |