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()
|
||||
.items(
|
||||
Joi.object({
|
||||
deprecated: Joi.boolean().required(),
|
||||
outdated: Joi.boolean().required(),
|
||||
deprecated: Joi.boolean()
|
||||
.allow(null)
|
||||
.required(),
|
||||
outdated: Joi.boolean()
|
||||
.allow(null)
|
||||
.required(),
|
||||
})
|
||||
)
|
||||
.default([]),
|
||||
|
||||
Reference in New Issue
Block a user