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
When trying to find out whether a property is a reference or not, or getting the reference, if the key does not exist, a NullPointer is thrown. Perhaps it would be better to return false or null.
Stacktrace:
java.lang.NullPointerException
at com.reprezen.jsonoverlay.PropertiesOverlay.getReference(PropertiesOverlay.java:209)
at com.reprezen.jsonoverlay.Overlay.getPropertyReference(Overlay.java:309)
at com.reprezen.jsonoverlay.Overlay.getReference(Overlay.java:283)
at com.reprezen.jsonoverlay.Overlay.isReference(Overlay.java:266)
at com.reprezen.jsonoverlay.Overlay.isReference(Overlay.java:270)
Example:
if(Overlay.isReference(someSchema,"items")){
some code
}
returns null when someSchema is like
{"type":"array","items":{"$ref":"#/components/schemas/MoreData"},"description":"a single ref to MoreData (many-to-one)"}
When trying to find out whether a property is a reference or not, or getting the reference, if the key does not exist, a NullPointer is thrown. Perhaps it would be better to return false or null.
Stacktrace:
Example:
returns null when someSchema is like
@maybeec
The text was updated successfully, but these errors were encountered: