Skip to content

Commit

Permalink
Remove unsupported keyword OAS 3.0.x typing - additionalItems (#1609)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Fiel <[email protected]>
  • Loading branch information
jeremyfiel and jeremyfiel authored Jul 11, 2024
1 parent bc035c8 commit 97302b8
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

1 comment on commit 97302b8

@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 77.22% 4563/5909
🟡 Branches 67.19% 2511/3737
🟡 Functions 70.69% 750/1061
🟡 Lines 77.46% 4298/5549

Test suite run success

750 tests passing in 105 suites.

Report generated by 🧪jest coverage report action from 97302b8

Please sign in to comment.