Skip to content

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

Open
@SE-June

Description

@SE-June

Support plan

  • is this issue currently blocking your project? (yes):
  • is this issue affecting a production system? (no):

Context

  • node version: 18.15.0
  • module version: joi(17.9.2)
  • environment (e.g. node, browser, native): node(18.15.0)
  • used with (e.g. hapi application, another framework, standalone, ...): nestjs
  • any other relevant information:

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportQuestions, discussions, and general support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions