Skip to content

Commit 2722345

Browse files
authored
fix(types): oas schema type definition (#1970)
1 parent e1ee61c commit 2722345

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/light-lizards-play.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+
Updated OAS3 Schema type definition to correct `type` keyword enum, removed `null`.

packages/core/src/types/oas3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ const Schema: NodeType = {
332332
required: { type: 'array', items: { type: 'string' } },
333333
enum: { type: 'array' },
334334
type: {
335-
enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'],
335+
enum: ['object', 'array', 'string', 'number', 'integer', 'boolean'],
336336
},
337337
allOf: listOf('Schema'),
338338
anyOf: listOf('Schema'),

0 commit comments

Comments
 (0)