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 reason seems to be in OpenAPIDeserializer#getAnyExample
if (example.getNodeType().equals(JsonNodeType.STRING)) {
String value = getString(nodeKey, node, false, location, result);
//it checks a string for not blank
if (StringUtils.isNotBlank(value)) {
return value;
}
}
mih-kopylov
changed the title
Empty and blank examples are parsed to null
Empty and blank query parameter examples are parsed to null
May 16, 2020
mih-kopylov
added a commit
to mih-kopylov/swagger-parser
that referenced
this issue
May 16, 2020
Empty and blank query parameter examples are parsed to null, while it's expected them to be parsed to a valid empty or blank string respectively.
result.getOpenAPI().getPaths().get("/foo").getGet().getParameters().get(0).getExample()
returnsnull
while I expect it to return" "
The same is with an empty string.
The text was updated successfully, but these errors were encountered: