Skip to content

Commit

Permalink
Add support for HEAD requests
Browse files Browse the repository at this point in the history
The inflector ignored HEAD requests, this commit enables HEAD requests
to be supported
  • Loading branch information
rvesse committed May 21, 2019
1 parent 3365c3c commit 9b1d286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/swagger/oas/inflector/OpenAPIInflector.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ protected void init(Configuration configuration) {
if (operation != null) {
addOperation(pathString, builder, HttpMethod.GET, operation, definitions);
}
operation = pathItem.getHead();
if (operation != null) {
addOperation(pathString, builder, HttpMethod.HEAD, operation, definitions);
}
operation = pathItem.getPost();
if (operation != null) {
addOperation(pathString, builder, HttpMethod.POST, operation, definitions);
Expand Down

0 comments on commit 9b1d286

Please sign in to comment.