You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use this to validate autogenerated JSON Schemas, and getting an error. So I have the Draft 7 schema inside of an object, and trying to use it as the `schema parameter results in the following error:
Argument of type '{ $schema: string; $id: string; title: string; definitions: { schemaArray: { type: string; minItems: number; items: { $ref: string; }; }; nonNegativeInteger: { type: string; minimum: number; }; nonNegativeIntegerDefault0: { ...; }; simpleTypes: { ...; }; stringArray: { ...; }; }; type: string[]; properties: { ...; }...' is not assignable to parameter of type 'Schema'.
Types of property 'properties' are incompatible.
Type '{ $id: { type: string; format: string; }; $schema: { type: string; format: string; }; $ref: { type: string; format: string; }; $comment: { type: string; }; title: { type: string; }; description: { type: string; }; ... 39 more ...; not: { ...; }; }' is not assignable to type '{ [name: string]: Schema; }'.
Property '"default"' is incompatible with index signature.
Type 'boolean' has no properties in common with type 'Schema'
The text was updated successfully, but these errors were encountered:
This was kinda what I was afraid of when typescript types were added.
I have no knowledge of typescript, if you know how to fix it, please contribute a PR.
Trying to use this to validate autogenerated JSON Schemas, and getting an error. So I have the Draft 7 schema inside of an object, and trying to use it as the `schema parameter results in the following error:
The text was updated successfully, but these errors were encountered: