-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reusable (Request/Response) Object #2122
Comments
I've hacked together basic support for parsing & codegen lakeman@4528a59 A proper fix would probably add That and some test cases... |
Hi, I have the same issue here.
In C#, the Content is empty: NSwag.OpenApiOperation Operation;
|
Same problem for me, openApi with requestBodies, and type of client method parameter is generated as |
5 years for a fix lol, but thanks for the update! |
Just tested this with our contracts (most recent master branch). It does not work. Still get
|
Hi,
we have reusable Request/Response Objects defined in our openApi 3 yaml file but the generated output doesn't seem to support this feature for request (and response) definition of a path.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#components-object
Open API schema:
Take the following generation code:
Output.cs contains the following code:
Defining the same using schemas works well:
Open API schema:
output:
Is this not supported or am I missing something? I can assume that this isn't an easy task since one can have different content types which would make generating the payload object more complicated.
Martyn
The text was updated successfully, but these errors were encountered: