Skip to content

Commit

Permalink
Fix schema.items type
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaTretyak committed May 6, 2021
1 parent 060a342 commit df3f7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion versions/3.1/src/extended/schema-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ interface XSchemaObjectBasic extends SchemaObject {
then?: XSchemaObject;
else?: XSchemaObject;
dependentSchemas?: { [dependentSchema: string]: XSchemaObject };
items?: XSchemaObject | { [item: string]: XSchemaObject };
items?: XSchemaObject | XSchemaObject[];
additionalItems?: XSchemaObject;
unevaluatedItems?: XSchemaObject;
contains?: XSchemaObject;
Expand Down
2 changes: 1 addition & 1 deletion versions/3.1/src/origin/schema-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ export interface SchemaObject {
* Omitting this keyword has the same assertion behavior as an empty
* schema.
*/
items?: this | { [item: string]: SchemaObject };
items?: this | this[];
/**
* The value of "additionalItems" MUST be a valid JSON Schema.
*
Expand Down

0 comments on commit df3f7b4

Please sign in to comment.