Skip to content

Commit

Permalink
Fix missing noUnknown property for district schema
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Nov 16, 2023
1 parent 7a3e063 commit f793d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/district/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const inseeSchema = object({
is: true,
otherwise: schema => schema.required(),
}),
})
}).noUnknown()

const metaSchema = object({
insee: inseeSchema,
Expand All @@ -35,7 +35,7 @@ export const banDistrictSchema = object({
// eslint-disable-next-line unicorn/no-thenable
then: schema => schema.default(null).nullable(),
}),
})
}).noUnknown()

export const districtDefaultOptionalValues = {
config: null,
Expand Down

0 comments on commit f793d11

Please sign in to comment.