Validate json arrays
This commit is contained in:
parent
1557b02682
commit
f9dadf83a2
|
@ -34,6 +34,7 @@ const validationKeyByType: Record<UIDatasourceType, string | null> = {
|
|||
custom: null,
|
||||
link: "rowId",
|
||||
field: "value",
|
||||
jsonarray: "value",
|
||||
}
|
||||
|
||||
export const screenComponentErrors = derived(
|
||||
|
@ -74,6 +75,10 @@ export const screenComponentErrors = derived(
|
|||
bindings.extractRelationships(componentBindings)
|
||||
),
|
||||
...reduceBy("value", bindings.extractFields(componentBindings)),
|
||||
...reduceBy(
|
||||
"value",
|
||||
bindings.extractJSONArrayFields(componentBindings)
|
||||
),
|
||||
}
|
||||
|
||||
const resourceId = componentSettings[validationKey]
|
||||
|
|
|
@ -6,3 +6,4 @@ export type UIDatasourceType =
|
|||
| "custom"
|
||||
| "link"
|
||||
| "field"
|
||||
| "jsonarray"
|
||||
|
|
Loading…
Reference in New Issue