Added OperatorConstraints UI generator

This commit is contained in:
Saud Fatayerji
2023-11-19 20:09:53 +03:00
parent d73a61ae3d
commit 42904788bf
6 changed files with 97 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ export class FieldConstraint {
default:
throw new Error(`UiConf type '${this.type}' not supported`)
}
} else if (this.type instanceof FieldConstraint) {
} else if (this.type instanceof RecordConstraint) {
schema = this.type.toJoiSchema()
} else {
throw new Error(`UiConf type '${this.type}' not supported`)