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
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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