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

enum validation error should include the list of allowed enum values #83

Closed
cdimascio opened this issue Oct 22, 2019 · 0 comments
Closed

Comments

@cdimascio
Copy link
Owner

cdimascio commented Oct 22, 2019

it will be more helpful if the following validation error contains the list of allowed enum values

{ 
  message: '.response.role should be equal to one of the allowed values',
  errors: [{
    path: '.response.role',
    message: 'should be equal to one of the allowed values',
    errorCode: 'enum.openapi.validation' 
  }]
}
@cdimascio cdimascio changed the title enum validation failure message should include a list of valid enum values enum validation failure message should include a list of allowed enum values Oct 23, 2019
@cdimascio cdimascio changed the title enum validation failure message should include a list of allowed enum values enum validation error should include the list of allowed enum values Oct 23, 2019
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