Commit c5074e57 authored by nanahira's avatar nanahira

fix tuple stuff of array

parent 90d9a36a
......@@ -21,7 +21,11 @@ export function SchemaProperty(options: SchemaOptions = {}): PropertyDecorator {
options.type = 'any';
}
}
if (nativeTypeString === 'array') {
if (
nativeTypeString === 'array' &&
options.array !== false &&
options.schema?.type !== 'tuple'
) {
options.array = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment