-
Notifications
You must be signed in to change notification settings - Fork 29
Resolve references to other path operations' examples #227
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
Conversation
|
I have no particular comments on this, the code seems fine but I wonder if referencing the path is part of the specification or we are bending the rules. |
Yes, these references are part of the standard (see https://swagger.io/docs/specification/using-ref/) |
|
I think that these examples should be turned into components if they are going to be reused but apart from that, i remember the docs template use the jsonSchema property which contains references as well. Will these get resolved? Sorry I cannot test this now, so my question might be dumb but im officially on vacation and from my phone :p |
The source API spec probably has multiple endpoints referencing to a single example that is defined in a separate file. The weird looking reference are created by the tooling used to bundle the spec. This fix only addresses the example references. Enjoy your holiday! |
|
In the car at the moment, so I'll zoom in a bit later . The paths are valid yaml, and many tools will parse them ,but our apis are meant for humans so I think we should still start gating on apis that are bundled with paths with tildes . This fix only applies to boat docs and marina? |
|
Kudos, SonarCloud Quality Gate passed! |








Resolve references to other path operations' examples (as created by swagger-cli)
eg
#/paths/~1client-api~1v2~1accounts~1balance-history~1%7BarrangementIds%7D/get/responses/200/content/text~1csv/example(fixes: #226)