Open TinaLiu02 opened 1 year ago
Unfortunately there is no support for multiple examples for body parameters in OpenAPI v2. We could carry the examples though to the V2 document as an extension. e.g. x-examples
Would that address your need?
yes. that would be great.
We need to add serializing of the examples map to x-examples
here https://github.com/microsoft/OpenAPI.NET/blob/05c56159eaed252744ed3a77aef0a6cc8351e31c/src/Microsoft.OpenApi/Models/OpenApiResponse.cs#L187
@MaggieKimani1 Why is this a breaking change? Could this not be implemented in the current V1.x branch?
@MaggieKimani1 Why is this a breaking change? Could this not be implemented in the current V1.x branch?
You're right, this isn't a breaking change. I have rebased the branch onto vnext
so that this goes out with the next v1.x
release.
Bug: we need to convert V3 swagger to V2 and transform the examples, but examples part in request/responses/components are missing after converting V3 swagger to V2. v3 swagger file: https://github.com/linkedin-developers/job-posting-development-tools/blob/master/OpenAPI-specification/job_posting_v2.yaml
To Reproduce Steps to reproduce the current behavior:
Expected behavior examples should display in V2 swagger.
Screenshots/Code Snippets stack trace:
screenshot: