Skip to content

Commit c77e00b

Browse files
feat: added support for query http method in arazzo (#1884)
1 parent da8f032 commit c77e00b

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.changeset/empty-rings-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@redocly/openapi-core": patch
3+
---
4+
5+
Added support for the `query` HTTP method in Arazzo operation definitions to enhance API interaction capabilities.

packages/core/src/types/arazzo.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,21 @@ const ExtendedOperation: NodeType = {
171171
'put',
172172
'delete',
173173
'patch',
174+
'head',
175+
'options',
176+
'trace',
177+
'connect',
178+
'query',
174179
'GET',
175180
'POST',
176181
'PUT',
177182
'DELETE',
178183
'PATCH',
179-
'options',
180184
'OPTIONS',
181-
'head',
182185
'HEAD',
183-
'trace',
184186
'TRACE',
185-
'connect',
186187
'CONNECT',
188+
'QUERY',
187189
],
188190
},
189191
},

packages/core/src/typings/arazzo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface ExtendedOperation {
3939
| 'options'
4040
| 'trace'
4141
| 'connect'
42+
| 'query'
4243
| 'GET'
4344
| 'POST'
4445
| 'PUT'
@@ -47,7 +48,8 @@ export interface ExtendedOperation {
4748
| 'HEAD'
4849
| 'OPTIONS'
4950
| 'TRACE'
50-
| 'CONNECT';
51+
| 'CONNECT'
52+
| 'QUERY';
5153
}
5254

5355
export interface Replacement {

0 commit comments

Comments
 (0)