-
Notifications
You must be signed in to change notification settings - Fork 4
Array
Sergej edited this page Dec 20, 2019
·
2 revisions
⚠ Not yet supported.
No proposed implementation:
const schema = new Schema<Model>()
.with(x => x.ObjArrayProp, new ArraySchema({
items: new Schema<Model2>()
.with(x => x.Lvl2ObjProp.Lvl3StrProp, new StringSchema({
minLength: 1
}))
}))
.build();
const schema = new Schema<Model>()
.with(m => m.ArrayProp, new ArraySchema({
items: [1, 2],
additionalItems: false
})))
.build();
const schema = new Schema<Model>()
.with(m => m.ArrayProp, new ArraySchema({
length: x < 3
}))
.build();
Supported operators: ==
, ===
, >=
, <=
, >
, <
const schema = new Schema<Model>()
.with(m => m.ArrayProp, new ArraySchema({
uniqueItems: false
}))
.build();