Skip to content

Commit

Permalink
update schema for autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha305 committed Jan 20, 2025
1 parent d7f39c6 commit 10bff2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ const paramSchema = Joi.object({
"animation",
"objinstancevar"
),
autocompleteId: Joi.string().optional(),
autocompleteId: Joi.string().when('type', {
is: "string",
then: Joi.string().optional(),
otherwise: Joi.forbidden()
}),
})
.when(Joi.object({ type: Joi.string().valid("combo") }).unknown(), {
then: Joi.object({
Expand Down

0 comments on commit 10bff2b

Please sign in to comment.