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 c6aa5a5 + 321ffac commit f4cd851Copy full SHA for f4cd851
src/form/street-address-configuration.ts
@@ -9,6 +9,7 @@ import {
9
defineFormConditional,
10
errorMessages
11
} from '@opencrvs/toolkit/events'
12
+import { type } from 'os'
13
14
function isInternationalAddress() {
15
return and(
@@ -42,20 +43,12 @@ export function getNestedFieldValidators(
42
43
[fieldId]: {
44
type: 'object',
45
properties: {
- streetLevelDetails: {
46
- type: 'object',
47
- properties: {
48
- [field.id]: {
49
- minLength: 1
50
- }
51
- },
52
- required: [field.id]
+ [field.id]: {
+ minLength: 1
53
}
54
55
- required: ['streetLevelDetails']
+ }
56
57
58
- required: [fieldId]
59
})
60
}))
61
0 commit comments