Skip to content

Commit

Permalink
fix(types): removed unsupported keyword typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfiel authored and tatomyr committed Jul 11, 2024
1 parent bc035c8 commit d4d0a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-files-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@redocly/openapi-core": patch
"@redocly/cli": patch
---

Removed `additionalItems` from OAS 3.0.x typings. This keyword is not supported by the specification
7 changes: 0 additions & 7 deletions packages/core/src/types/oas3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,6 @@ const Schema: NodeType = {
return 'Schema';
}
},
additionalItems: (value: any) => {
if (typeof value === 'boolean') {
return { type: 'boolean' };
} else {
return 'Schema';
}
},
additionalProperties: (value: any) => {
if (typeof value === 'boolean') {
return { type: 'boolean' };
Expand Down

0 comments on commit d4d0a40

Please sign in to comment.