diff --git a/src/main/java/io/swagger/oas/inflector/OpenAPIInflector.java b/src/main/java/io/swagger/oas/inflector/OpenAPIInflector.java index 33e57c9b..8487a2ea 100644 --- a/src/main/java/io/swagger/oas/inflector/OpenAPIInflector.java +++ b/src/main/java/io/swagger/oas/inflector/OpenAPIInflector.java @@ -189,6 +189,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);