Allow nulls for boolean fields on Libraries.io APIs (#3530)
This commit is contained in:
committed by
Caleb Cartwright
parent
c2f7ca9daa
commit
76e8d8e05f
@@ -11,8 +11,12 @@ const schema = Joi.object({
|
|||||||
dependencies: Joi.array()
|
dependencies: Joi.array()
|
||||||
.items(
|
.items(
|
||||||
Joi.object({
|
Joi.object({
|
||||||
deprecated: Joi.boolean().required(),
|
deprecated: Joi.boolean()
|
||||||
outdated: Joi.boolean().required(),
|
.allow(null)
|
||||||
|
.required(),
|
||||||
|
outdated: Joi.boolean()
|
||||||
|
.allow(null)
|
||||||
|
.required(),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.default([]),
|
.default([]),
|
||||||
|
|||||||
Reference in New Issue
Block a user