Remove unsupported keyword OAS 3.0.x typing - additionalItems (#1609)

Co-authored-by: Jeremy Fiel <jeremy.fiel@adp.com>
This commit is contained in:
Jeremy Fiel
2024-07-11 07:13:49 -04:00
committed by GitHub
parent bc035c8b17
commit 97302b8805
2 changed files with 6 additions and 7 deletions

View File

@@ -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.

View File

@@ -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' };