Skip to content

Commit

Permalink
feat: remove support in-body parameter in arazzo (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAnansky authored Jan 21, 2025
1 parent ef4b2e2 commit 648fb6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-coats-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/openapi-core": patch
---

Removed support for `in: body` parameters due to Arazzo specification updates.
2 changes: 1 addition & 1 deletion packages/core/src/types/arazzo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ReusableObject: NodeType = {
};
const Parameter: NodeType = {
properties: {
in: { type: 'string', enum: ['header', 'query', 'path', 'cookie', 'body'] },
in: { type: 'string', enum: ['header', 'query', 'path', 'cookie'] },
name: { type: 'string' },
value: {}, // any
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/typings/arazzo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface ArazzoSourceDescription {
export type SourceDescription = OpenAPISourceDescription | ArazzoSourceDescription;

export interface Parameter {
in?: 'header' | 'query' | 'path' | 'cookie' | 'body';
in?: 'header' | 'query' | 'path' | 'cookie';
name: string;
value: string | number | boolean;
reference?: string;
Expand Down

1 comment on commit 648fb6c

@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.63% 5047/6419
🟡 Branches 67.28% 2056/3056
🟡 Functions 73.13% 833/1139
🟡 Lines 78.92% 4761/6033

Test suite run success

835 tests passing in 120 suites.

Report generated by 🧪jest coverage report action from 648fb6c

Please sign in to comment.