Skip to content

Commit 7888787

Browse files
committed
fix(types): removed unsupported keyword typing
related Redocly#707 related OAI/OpenAPI-Specification#741 (comment)
1 parent 74802b0 commit 7888787

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.changeset/hungry-files-scream.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@redocly/openapi-core": patch
3+
"@redocly/cli": patch
4+
---
5+
6+
Removed `additionalItems` from OAS 3.0.x typings. This keyword is not supported by the specification

packages/core/src/types/oas3.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,6 @@ const Schema: NodeType = {
346346
return 'Schema';
347347
}
348348
},
349-
additionalItems: (value: any) => {
350-
if (typeof value === 'boolean') {
351-
return { type: 'boolean' };
352-
} else {
353-
return 'Schema';
354-
}
355-
},
356349
additionalProperties: (value: any) => {
357350
if (typeof value === 'boolean') {
358351
return { type: 'boolean' };

0 commit comments

Comments
 (0)