Skip to content

[BUG] Code gen for inline response schemata #9947

@Johnlon

Description

@Johnlon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions