Skip to content

Joi.any().options() should be reported in .describe() #1130

@WesTyler

Description

@WesTyler

Context

  • joi version: 10.x
  • environment (node, browser): node

What are you trying to achieve or the steps to reproduce ?

The properties set by using the .options({}) method should be included in the output of .describe()

Which result you had ?

Joi.any().options({ convert: false, abortEarly: false }).describe();
// { type: 'any' }

What did you expect ?

Joi.any().options({ convert: false, abortEarly: false }).describe();
// { type: 'any', options: { convert: false, abortEarly: false } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions