Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions expander.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ func expandPathItem(pathItem *PathItem, resolver *schemaLoader, basePath string)
pathItem.Post,
pathItem.Patch,
pathItem.Delete,
pathItem.Query,
}
for _, op := range ops {
if err := expandOperation(op, resolver, basePath); resolver.shouldStopOnError(err) {
Expand Down
1 change: 1 addition & 0 deletions path_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type PathItemProps struct {
Options *Operation `json:"options,omitempty"`
Head *Operation `json:"head,omitempty"`
Patch *Operation `json:"patch,omitempty"`
Query *Operation `json:"query,omitempty"`
Parameters []Parameter `json:"parameters,omitempty"`
}

Expand Down
4 changes: 4 additions & 0 deletions path_item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ var pathItem = PathItem{ //nolint:gochecknoglobals // test fixture
Patch: &Operation{
OperationProps: OperationProps{Description: "patch operation description"},
},
Query: &Operation{
OperationProps: OperationProps{Description: "query operation description"},
},
Parameters: []Parameter{
{
ParamProps: ParamProps{In: "path"},
Expand All @@ -56,6 +59,7 @@ const pathItemJSON = `{
"options": { "description": "options operation description" },
"head": { "description": "head operation description" },
"patch": { "description": "patch operation description" },
"query": { "description": "query operation description" },
"parameters": [{"in":"path"}]
}`

Expand Down
Loading