hapijs / joi

The most powerful data validation library for JS
Other
20.95k stars 1.51k forks source link

When using Joi.alternatives().try(schema1, schema2), Error message have no clue that which property is missing #2946

Open SE-June opened 1 year ago

SE-June commented 1 year ago

Support plan

Context

How can we help?

When using Joi.alternatives().try(schema1, schema2), Can I have a clue that which property is missing like using one Object Schema

Joi.alternatives().try(schema1, schema2)