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

Description of ResponseHeader is blank #4077

Open
bin-jump opened this issue Nov 24, 2023 · 0 comments
Open

Description of ResponseHeader is blank #4077

bin-jump opened this issue Nov 24, 2023 · 0 comments

Comments

@bin-jump
Copy link

bin-jump commented Nov 24, 2023

The description of @ResponseHeader seems to be ignored.

The code below maps header information to dto for v3 specification. Description part is not correctly processed. Set the description during mapping should help fix the problem.

response.setHeaders(each.getHeaders().stream()
.collect(Collectors.toMap(
Header::getName,
h -> Mappers.getMapper(PropertyMapper.class)
.fromModel(h.getModelSpecification(), modelNamesRegistry))));

Would be happy to create the PR.

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