-
Notifications
You must be signed in to change notification settings - Fork 328
Closed
Description
The typescript type
interface MyType {
[index: number]: number
}is parsed into the schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"items": {
"type": "number"
},
"type": "array"
}while it should be parsed into
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^[0-9]+$": {
"type": "number"
}
},
"additionalProperties": false
}
nerdyman
Metadata
Metadata
Assignees
Labels
No labels