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
The code to get the validation error list in src/core/components/param-body.jsx
// line 110 - 111letparameter=specSelectors ? specSelectors.parameterWithMetaByIdentity(pathMethod,param) : paramleterrors=parameter.get("errors",List())
seems can't get the error list set in the [VALIDATE_PARAMS] reducer. While I changed it to
// line 111leterrors=param.get("errors",List())
to get the error list directly from the param variable, and it worked.
I think this may be a defect and don't know why this specSelectors.parameterWithMetaByIdentity(pathMethod, param) is necessary. Please take a look.
Example Swagger/OpenAPI definition:
# your YAML here
Swagger-UI configuration options:
SwaggerUI({// your config options here})
?yourQueryStringConfig
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
Go to 'petstore'
Scroll down to 'any api with additional body parameter'
Change it's json body to any invalid format
Click on Execute
Expected behavior
There would be some feedback on the page
Screenshots
Additional context or thoughts
If the param-body gets the errors correctly, there would be a hint on the page indicating the param error for #6295.
And if the error messages can be displayed on the page, it would be even better.
The text was updated successfully, but these errors were encountered:
Would you mind taking a look and please advise me on what I should do with this?
Some people suggested dropping the parameterWithMetaByIdentity method completely and use the errors directly.
Q&A (please complete the following information)
Content & configuration
The code to get the validation error list in
src/core/components/param-body.jsx
seems can't get the error list set in the
[VALIDATE_PARAMS]
reducer. While I changed it toto get the error list directly from the
param
variable, and it worked.I think this may be a defect and don't know why this
specSelectors.parameterWithMetaByIdentity(pathMethod, param)
is necessary. Please take a look.Example Swagger/OpenAPI definition:
# your YAML here
Swagger-UI configuration options:
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
Execute
Expected behavior
There would be some feedback on the page
Screenshots
Additional context or thoughts
If the param-body gets the errors correctly, there would be a hint on the page indicating the param error for #6295.
And if the error messages can be displayed on the page, it would be even better.
The text was updated successfully, but these errors were encountered: