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

Similar operations with different produced ContentType are not handled correctly #169

Open
murdos opened this issue Sep 8, 2024 · 2 comments · May be fixed by #187
Open

Similar operations with different produced ContentType are not handled correctly #169

murdos opened this issue Sep 8, 2024 · 2 comments · May be fixed by #187

Comments

@murdos
Copy link
Contributor

murdos commented Sep 8, 2024

Here's a valid SpringMVC code:

@RequestMapping("/multiple-produced-content-types")
public class MultipleProducedContentTypes {

	@GetMapping(path = "/", produces = MediaType.APPLICATION_JSON_VALUE)
	public String json() {
		return "json";
	}

	@GetMapping(path = "/", produces = MediaType.TEXT_XML_VALUE)
	public String xml() {
		return "xml";
	}
}

It currently results with the following blocking error:

More than one operation mapped on GET : /multiple-produced-content-types/ in tag MultipleProducedContentTypes

See related SpringDoc issue

@murdos
Copy link
Contributor Author

murdos commented Sep 8, 2024

@kbuntrock : If you have some guidance here on how to resolve this. I'm not sure if it should be better to "merge" endpoints in SpringMvcReader, or if this should rather be handled in YamlWriter.

@kbuntrock
Copy link
Owner

My initial feeling would be to put it in the SpringMvcReader. I would find it more logical. But I don't have the full picture right now. 😋

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

Successfully merging a pull request may close this issue.

2 participants