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

[BUG] Code gen for inline response schemata #9947

Open
Johnlon opened this issue Jul 14, 2021 · 0 comments
Open

[BUG] Code gen for inline response schemata #9947

Johnlon opened this issue Jul 14, 2021 · 0 comments

Comments

@Johnlon
Copy link

Johnlon commented Jul 14, 2021

The swagger docs mention being able to Describing Responses inline .. https://swagger.io/docs/specification/describing-responses/ (ie no refs).

However when I tried this then the spring code gen created no model objects to represent the return value.
It does create an api/ dir but the the apis all ended up as returning "ResponseEntity" and the annotation on the interface are all Object.class.

Is it a fact that the code gen tooling does not support inline response schemata and I must always place this in the components/* section and use ref ?

I'm reporting as a I was expecting this to do something useful which at present it does not.

I will give more of a workup if someone thinks this ought to work.

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

No branches or pull requests

1 participant