Skip to content

Support generic validation library to validate configΒ #2065

@xballoy

Description

@xballoy

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Schema validation can only be done using Joi or using a custom validation function.

Describe the solution you'd like

I suggest supporting Standard Schema to be able to use any validation library without the need pass a custom validation function.

Teachability, documentation, adoption, migration strategy

We could add a new property standardValidationSchema for example.

Note: I opened a PR in Joi so it would support this new property. Only drawback is we won't be able to pass custom options.

What is the motivation / use case for changing the behavior?

Allow to use the same schema in all the app without being forced to use Joi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions