Skip to content

Commit

Permalink
v2 projects number search parameters can be numbers or array of numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Dec 9, 2024
1 parent ea6cf20 commit eb303e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openapi/schema/response/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ const project = Joi.object( ).keys( {
value_bool: Joi.boolean( ),
value_date: Joi.array( ).items( Joi.string( ) ),
value_keyword: Joi.any( ).description( "TODO: values can be single values or arrays" ),
value_number: Joi.array( ).items( Joi.number( ) )
value_number: Joi.alternatives( ).try(
Joi.number( ),
Joi.array( ).items( Joi.number( ) )
)
} ).unknown( false ) ),
site_features: Joi.array( ).items( Joi.object( ).keys( {
noteworthy: Joi.boolean( ),
Expand Down

0 comments on commit eb303e8

Please sign in to comment.