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