forked from go-openapi/spec3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoperation.go
19 lines (17 loc) · 898 Bytes
/
operation.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package spec3
// Operation describes a single API operation on a path.
type Operation struct {
VendorExtensible
Tags []string `json:"tags,omitempty"`
Summary string `json:"summary,omitempty"`
Description string `json:"description,omitempty"`
ExternalDocs ExternalDocumentation `json:"externalDocs,omitempty"`
OperationID string `json:"operationId,omitempty"`
Parameters []Parameter `json:"parameters,omitempty"`
RequestBody RequestBody `json:"requestBody,omitempty"`
Responses OrderedResponses `json:"responses,omitempty"`
Callbacks map[string]Callback `json:"callbacks,omitempty"`
Deprecated bool `json:"deprecated,omitempty"`
Security []SecurityRequirement `json:"security,omitempty"`
Servers []Server `json:"servers,omitempty"`
}