Skip to content

Commit

Permalink
Merge pull request #1224 from contentful/fix/validation-message-null-…
Browse files Browse the repository at this point in the history
…type

fix: allow null type for validation message
  • Loading branch information
BasKiers authored Jul 12, 2023
2 parents fae4ef7 + 30a1698 commit 4ed6736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { allowedResourcesSchema } from './allowed-resources-schema'
const validation = (name, constraint) =>
Joi.object({
[name]: constraint,
message: Joi.string()
message: Joi.string().allow(null)
})

const range = (type) =>
Expand Down

0 comments on commit 4ed6736

Please sign in to comment.