mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Add logic to generate openapi response structures (#18192)
This commit is contained in:
committed by
GitHub
parent
672cdc0fdb
commit
5b04a05511
@@ -229,9 +229,10 @@ type RequestExample struct {
|
||||
|
||||
// Response describes and optional demonstrations an operation response.
|
||||
type Response struct {
|
||||
Description string // summary of the the response and should always be provided
|
||||
MediaType string // media type of the response, defaulting to "application/json" if empty
|
||||
Example *logical.Response // example response data
|
||||
Description string // summary of the the response and should always be provided
|
||||
MediaType string // media type of the response, defaulting to "application/json" if empty
|
||||
Fields map[string]*FieldSchema // the fields present in this response, used to generate openapi response
|
||||
Example *logical.Response // example response data
|
||||
}
|
||||
|
||||
// PathOperation is a concrete implementation of OperationHandler.
|
||||
|
||||
Reference in New Issue
Block a user