Open
Description
I have defined a tuple type like this:
type tuple3 = [ number, string, string ];
The translation I get (with or without --noExtraProps
) is:
{
"$schema": "http://json-schema.org/draft-06/schema#",
"additionalItems": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "string"
}
]
},
"items": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "string"
}
],
"minItems": 3,
"type": "array"
}
What I expect is no additionalItems, like this:
{
"$schema": "http://json-schema.org/draft-06/schema#",
"items": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 3,
"minItems": 3,
"type": "array"
}
Metadata
Metadata
Assignees
Labels
No labels