Skip to content

Commit

Permalink
Fix default optional values from undefined to null
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Nov 16, 2023
1 parent ba081a4 commit 10c1476
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/api/address/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export const banAddressSchema = object({

export const addressDefaultOptionalValues = {
secondaryCommonToponymIDs: [],
suffix: '',
suffix: null,
labels: [],
certified: false,
meta: undefined,
meta: null,
}

4 changes: 2 additions & 2 deletions lib/api/common-toponym/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ export const banCommonToponymSchema = object({
}).noUnknown()

export const commonToponymDefaultOptionalValues = {
geometry: undefined,
meta: undefined,
geometry: null,
meta: null,
}
2 changes: 1 addition & 1 deletion lib/api/district/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ export const banDistrictSchema = object({
})

export const districtDefaultOptionalValues = {
config: undefined,
config: null,
}

0 comments on commit 10c1476

Please sign in to comment.