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
SwaggerParseResult giving merged results of Warnings and Error. there is no way can clearly separate from this list.
public SwaggerParseResult deserialize(JsonNode rootNode, String path) {
SwaggerParseResult result = new SwaggerParseResult();
ParseResult rootParse = new ParseResult();
OpenAPI api = this.parseRoot(rootNode, rootParse, path);
result.setOpenAPI(api);
result.setMessages(rootParse.getMessages());
return result;
}
However required results available in OpenAPIDeserializer- ParseResult,, which is protected.
if SwaggerParseResult output gives or other way to get warnings and errors separately, that would be helpful.. People can use them whether the swagger is valid or not.
or
allow them ParseOption to disable warnings and just return errors.
The text was updated successfully, but these errors were encountered:
sagartib
changed the title
SwaggerParseResult Not helping to Separate Warnings and Errors
SwaggerParseResult need to have separate Warnings and Errors messages
May 10, 2024
SwaggerParseResult giving merged results of Warnings and Error. there is no way can clearly separate from this list.
public SwaggerParseResult deserialize(JsonNode rootNode, String path) {
SwaggerParseResult result = new SwaggerParseResult();
ParseResult rootParse = new ParseResult();
OpenAPI api = this.parseRoot(rootNode, rootParse, path);
result.setOpenAPI(api);
result.setMessages(rootParse.getMessages());
return result;
}
However required results available in OpenAPIDeserializer- ParseResult,, which is protected.
if SwaggerParseResult output gives or other way to get warnings and errors separately, that would be helpful.. People can use them whether the swagger is valid or not.
or
allow them ParseOption to disable warnings and just return errors.
The text was updated successfully, but these errors were encountered: