Cause for bug 7451: need advice #7808
smellyfrogcom
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have found the reason why the method parameterWithMetaByIdentity is not working when validating the JSON posted.
This is the cause for bug #7451.
The parameterWithMetaByIdentity function relies on the param hash code computation to identify the parameter itself. However, somehow the hashCode is not the same as the originally submitted param object by the time the method attempts to validate it.
Someone, suggested to scrap parameterWithMetaByIdentity.
I have a workaround instead in a fork which basically attempts to get the parameter if it was not found, by not using the hash code in the selector.
https://github.com/smellyfrogcom/swagger-ui/blob/bug/7451-json-validation-error/src/core/plugins/spec/selectors.js
This bug is really annoying, affects a few people and is the cause for other bugs.
I could do with some guidance into what to do with this issue.
Could someone among the swagger-ui developers please help me?
Beta Was this translation helpful? Give feedback.
All reactions