Skip to content

Commit 648fb6c

Browse files
feat: remove support in-body parameter in arazzo (#1851)
1 parent ef4b2e2 commit 648fb6c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/blue-coats-rescue.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+
Removed support for `in: body` parameters due to Arazzo specification updates.

packages/core/src/types/arazzo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const ReusableObject: NodeType = {
8484
};
8585
const Parameter: NodeType = {
8686
properties: {
87-
in: { type: 'string', enum: ['header', 'query', 'path', 'cookie', 'body'] },
87+
in: { type: 'string', enum: ['header', 'query', 'path', 'cookie'] },
8888
name: { type: 'string' },
8989
value: {}, // any
9090
},

packages/core/src/typings/arazzo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface ArazzoSourceDescription {
2121
export type SourceDescription = OpenAPISourceDescription | ArazzoSourceDescription;
2222

2323
export interface Parameter {
24-
in?: 'header' | 'query' | 'path' | 'cookie' | 'body';
24+
in?: 'header' | 'query' | 'path' | 'cookie';
2525
name: string;
2626
value: string | number | boolean;
2727
reference?: string;

0 commit comments

Comments
 (0)