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

Typo in Joi Validation with Swagger... #3038

Open
big-finn opened this issue May 21, 2024 · 1 comment
Open

Typo in Joi Validation with Swagger... #3038

big-finn opened this issue May 21, 2024 · 1 comment
Labels
bug Bug or defect

Comments

@big-finn
Copy link

Runtime

nodejs

Runtime version

17.13.1

Module version

17.13.1

Last module version without issue

No response

Used with

hapi

Any other relevant information

Used with latest Hapi and Joi

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

If you set this validation;

  validate: {
    payload: Joi.object({
      newPassword: Joi.string().min(8).max(64).required(),
    }),
  },
  
  In the swagger UI the default test is "newPassword": "stringst" instead of string, its just a typo.

What was the result you got?

"newPassword": "stringst"

What result did you expect?

"newPassword": "string"

@big-finn big-finn added the bug Bug or defect label May 21, 2024
@Marsup
Copy link
Collaborator

Marsup commented May 21, 2024

Sorry but I have no idea what you're referring to, this doesn't look like a joi issue as you're mentioning swagger.

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

No branches or pull requests

2 participants