Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paarameter is not set as nullable when using empty() in joi #15

Open
gr-miroslava-filcakova opened this issue May 31, 2022 · 0 comments

Comments

@gr-miroslava-filcakova
Copy link

When paratmeter is defined like this

gender: Joi.string()
			.uppercase()
			.valid(...USER_GENDERS)
			.empty([null, ''])

Null is valid value but in generated swagger documentation it is not marked as nullable parameter.
Screenshot 2022-05-31 at 13 33 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant