-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Field "description" values are usurped by the schema's definition description (used via Redoc) #597
Comments
By default There is an option (CLI and programmatic) called I don't know if Redoc specifies or exposes this option, or even if it uses a version of |
|
@davetransom open an issue in Redoc repo plz. I believe we don't use @MikeRalphson I think you can close this. |
Thanks both! |
Descriptions for fields are incorrectly converted from swagger 2.0 for complex objects (dependency in Redoc) i.e. it uses the description of the object, instead of the actual field.
Checklist
Detailed Description
Hi, I've shown up here as Redoc uses swagger2openapi to convert legacy swagger 2.0 into OpenAPI before rendering.
I've come across an issue where the descriptions on fields are being replaced by the fields on the object definition where structured objects are being used e.g.
This concerns the "description" that the "client" field ends up with in the converted OpenAPI spec.
Instead of the field's description:
which is helpful to the user, however the resultant description is:
I did have a poke around in the source, but couldn't come up with a simple explanation. I'm happy to help with a pull request in the hopes it helps other users of this tool (and redoc).
Visual Comparison
Here is a condensed swagger 2.0 sample to illustrate: sample.json.txt
(edit: hit ENTER accidentally after only entering the title🤦)
The text was updated successfully, but these errors were encountered: