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

Make sure the description from responses is also generated as a comment #23

Closed
isc-tstolker opened this issue Oct 13, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@isc-tstolker
Copy link
Collaborator

In some openapi specifications there are descriptions for the various responses, like in:

        "responses":{
          "200":{
            "description":"The posted JWT is valid. Responds with access token",
            "content":{
              "application/json":{
                "schema":{
                  "$ref":"#/components/schemas/AccessTokenResponse"
                }
              }
            }
          },
          "400":{
            "description":"The posted JWT is invalid.",
            "content":{
              "application/json":{
                "schema":{
                  "$ref":"#/components/schemas/AccessTokenRequestFailedResponse"
                }
              }
            }
          }

These are, however, lost when generating the response class.

@lscalese lscalese self-assigned this Oct 14, 2023
@lscalese lscalese added the bug Something isn't working label Oct 14, 2023
@lscalese
Copy link
Owner

Yes, the description wasn't added to the comment.
It's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants