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

Description next to $ref gets removed #18

Open
JeroenVanOort opened this issue Jan 15, 2024 · 1 comment
Open

Description next to $ref gets removed #18

JeroenVanOort opened this issue Jan 15, 2024 · 1 comment

Comments

@JeroenVanOort
Copy link

I'm working with an OpenAPI spec like this:

responses:
        200:
          $ref: '#/components/responses/UserResponse'
          description: The updated user.

I use this project to resolve references to external files and to convert to JSON. While doing so, I saw that the description is dropped. The result is like this:

responses:
        200:
          $ref: '#/components/responses/UserResponse'

I know that before, no siblings of $ref were allowed. In 3.1 however, some (like description and summary) are. It would be nice to have support for that in this project.

@DEVizzent
Copy link
Owner

Hi @JeroenVanOort,

PR is completelly welcome. If not I will try to find some time next first mid of March to add it. And please don't hesitate to ping for a fast reply 👍

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

No branches or pull requests

2 participants