Skip to content

Commit

Permalink
feat: added support for query http method in arazzo (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAnansky authored Feb 6, 2025
1 parent da8f032 commit c77e00b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-rings-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/openapi-core": patch
---

Added support for the `query` HTTP method in Arazzo operation definitions to enhance API interaction capabilities.
10 changes: 6 additions & 4 deletions packages/core/src/types/arazzo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,21 @@ const ExtendedOperation: NodeType = {
'put',
'delete',
'patch',
'head',
'options',
'trace',
'connect',
'query',
'GET',
'POST',
'PUT',
'DELETE',
'PATCH',
'options',
'OPTIONS',
'head',
'HEAD',
'trace',
'TRACE',
'connect',
'CONNECT',
'QUERY',
],
},
},
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/typings/arazzo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface ExtendedOperation {
| 'options'
| 'trace'
| 'connect'
| 'query'
| 'GET'
| 'POST'
| 'PUT'
Expand All @@ -47,7 +48,8 @@ export interface ExtendedOperation {
| 'HEAD'
| 'OPTIONS'
| 'TRACE'
| 'CONNECT';
| 'CONNECT'
| 'QUERY';
}

export interface Replacement {
Expand Down

1 comment on commit c77e00b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.6% 5053/6429
🟡 Branches 67.18% 2059/3065
🟡 Functions 73.16% 834/1140
🟡 Lines 78.88% 4767/6043

Test suite run success

836 tests passing in 120 suites.

Report generated by 🧪jest coverage report action from c77e00b

Please sign in to comment.