OptionaladditionalAdditional items.
The additionalItems means the type schema info of the additional
items after the prefixItems. In the TypeScript, if there's a
type [T1, T2, ...TO[]], the ...TO[] is represented by the
additionalItems.
By the way, if you configure the additionalItems as true, it means
the additional items are not restricted. They can be any type, so that
it is equivalent to the TypeScript type [T1, T2, ...any[]].
Otherwise configure the additionalItems as the IJsonSchema, it
means the additional items must follow the type schema info. Therefore,
it is equivalent to the TypeScript type [T1, T2, ...TO[]].
OptionaldeprecatedWhether the type is deprecated or not.
OptionaldescriptionDetailed description of the schema.
OptionalexampleExample value.
OptionalexamplesList of example values as key-value pairs.
OptionalmaxMaximum items restriction.
Restriction of maximum number of items in the tuple.
OptionalminMinimum items restriction.
Restriction of minimum number of items in the tuple.
Prefix items.
The prefixItems means the type schema info of the prefix items in the
tuple type. In the TypeScript, it is expressed as [T1, T2].
If you want to express [T1, T2, ...TO[]] type, you can configure the
...TO[] through the additionalItems property.
OptionaltitleTitle of the schema.
Discriminator value of the type.
Note that, the tuple type cannot be distinguished with IArray
type just by this discriminator property.
To check whether the type is tuple or array, you have to check the existence of IArray.items or ITuple.prefixItems properties.
OptionaluniqueUnique items restriction.
If this property value is true, target tuple must have unique items.
Tuple type info.