You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Getting a type error when I try to access properties of errors array within an error object of type ValidationError
To Reproduce
Access the property errorCode inside an ValidationErrorItem
Actual behavior Type error: Property 'errorCode' does not exist on type 'ValidationErrorItem'. Did you mean 'error_code'.
If I try to access error_code, it's undefined.
Expected behavior
Should be able to access errorCode as that's what is returned by express-openapi-validator
Examples and context
I'm trying to transform errors returned by validator into another standard error body response.
The text was updated successfully, but these errors were encountered:
Describe the bug
Getting a type error when I try to access properties of errors array within an error object of type
ValidationError
To Reproduce
Access the property
errorCode
inside anValidationErrorItem
Actual behavior
Type error: Property 'errorCode' does not exist on type 'ValidationErrorItem'. Did you mean 'error_code'.
If I try to access error_code, it's undefined.
Expected behavior
Should be able to access errorCode as that's what is returned by express-openapi-validator
Examples and context
I'm trying to transform errors returned by validator into another standard error body response.
The text was updated successfully, but these errors were encountered: