We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2790ca8 + cb6fb46 commit c6aa5a5Copy full SHA for c6aa5a5
src/form/street-address-configuration.ts
@@ -9,7 +9,6 @@ import {
9
defineFormConditional,
10
errorMessages
11
} from '@opencrvs/toolkit/events'
12
-import { type } from 'os'
13
14
function isInternationalAddress() {
15
return and(
@@ -43,12 +42,20 @@ export function getNestedFieldValidators(
43
42
[fieldId]: {
44
type: 'object',
45
properties: {
46
- [field.id]: {
47
- minLength: 1
+ streetLevelDetails: {
+ type: 'object',
+ properties: {
48
+ [field.id]: {
49
+ minLength: 1
50
+ }
51
+ },
52
+ required: [field.id]
53
}
- }
54
55
+ required: ['streetLevelDetails']
56
57
58
+ required: [fieldId]
59
})
60
}))
61
0 commit comments