Skip to content
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

Object request parameter issue #67

Closed
okosiuta opened this issue Aug 28, 2019 · 1 comment
Closed

Object request parameter issue #67

okosiuta opened this issue Aug 28, 2019 · 1 comment

Comments

@okosiuta
Copy link

Hi!

Thank you for providing this awesome library.
I wrote the next code sample:

@Operation(summary = "Get employee", tags = {"Employee"})
    @GetMapping(value = "employee")
    public Mono<Employee> searchEmployee(String id, RequestParameter requestParam) {
        return Mono.empty();
    }
public class RequestParameter {
    String firstParam;
    String secondParam;
}

Swagger UI result:

Embedded_Parameters

And I wonder if there any way to show RequestParameter, not as an object but as a list of object properties.

Thank you!

@springdoc
Copy link
Collaborator

springdoc commented Aug 28, 2019

Hi,

We generate the OpenAPI description, and then we mainly rely on the official swagger jars (annotations/models/ui) .

This is the behaviour of swagger-ui. And there is a related enhancement on swagger-ui that we follow. This isn't yet resolved:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant