-
Notifications
You must be signed in to change notification settings - Fork 0
feat: adding external ref openapi examples and adding it to some rules #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@@ -7,12 +7,6 @@ | |||
"paths" : { | |||
"/pets" : { | |||
"get" : { | |||
"requestBody" : { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we losing this errors?
} | ||
} | ||
|
||
if (node.getType() == OpenApi3Grammar.OPERATION) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are subscribed now to OpenApi3Grammar.PATH, why we don't have an if for that case?
@@ -104,8 +105,14 @@ private void visitV3Node(JsonNode node) { | |||
List<JsonNode> responseCodes = node.properties().stream().collect(Collectors.toList()); | |||
for (JsonNode jsonNode : responseCodes) { | |||
if (!jsonNode.key().getTokenValue().equals("204")) { | |||
JsonNode responseNode = jsonNode.resolve(); | |||
visitContentNode(responseNode); | |||
boolean externalRefManagement = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
@@ -66,8 +66,14 @@ private void visitV3Node(JsonNode node) { | |||
List<JsonNode> responseCodes = node.properties().stream().collect(Collectors.toList()); | |||
for (JsonNode jsonNode : responseCodes) { | |||
if (!jsonNode.key().getTokenValue().equals("204")) { | |||
JsonNode responseNode = jsonNode.resolve(); | |||
visitContentNode(responseNode); | |||
boolean externalRefManagement = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
Adding external ref to rules OAR006,007,009,010 and 044.
Some expamples too.