Answer the question
In order to leave comments, you need to log in
Openapi (Swagger) Generator. How to generate a method that takes an HttpServletResponse as a parameter?
Good afternoon.
I describe the specification. Design first.
Those. according to the described specification, the code of controllers and DTO will be generated.
It is not possible to describe the method in such a way that HttpServletResponse is the parameter.
/api/method:
get:
tags:
- XXXController
summary: ~
description: ~
operationId: doSomething
parameters:
- description: HttpServletResponse
in: query
name: response
required: true
schema:
$ref: '#/components/schemas/HttpServletResponse'
importMappings = [
HttpServletResponse: "javax.servlet.http.HttpServletResponse"
]
Errors:
-attribute paths.'/method/l'(get).parameters.[response].schemas.#/components/schemas/HttpServletResponse is missing
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question