mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 12:47:48 +00:00
Remove unsupported keyword OAS 3.0.x typing - additionalItems (#1609)
Co-authored-by: Jeremy Fiel <jeremy.fiel@adp.com>
This commit is contained in:
6
.changeset/hungry-files-scream.md
Normal file
6
.changeset/hungry-files-scream.md
Normal 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.
|
||||
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user