-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[1.5.18] Swagger file rendering - Elements sorted alphabetically #2775
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
Comments
Where does the CSV come to play here? The use case is a bit unclear. |
I want to get an api description in swagger format for Oracle's Policy
Modeling projects, that's why I use CSV files : they describe my api and
data I need to use to communicate with webservices designed with Oracle
product. So, I create a swagger object with your api, and populate this
object with informations stored inside my CSV files to create operations,
properties,... It's working perfectly well, except for this sort issue. So
I'd like to know if there's a way to disable the alphabetical sort of the
yaml output, or if this feature could be planned into the future releases.
Le sam. 21 avr. 2018 à 16:29, Ron <[email protected]> a écrit :
… Where does the CSV come to play here? The use case is a bit unclear.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2775 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZPKNLjUPuzVdK0hqtVZQ0u6UsVbo-aMks5tq0IzgaJpZM4TaT9c>
.
|
Hi, I'm back about my request. Could we just forget the CSV part ? Let's focus about this : is it possible that elements added to a Swagger instance are not sorted alphabetically when calling the method |
This was referenced Jul 1, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to render swagger files using POJO classes which reads description of an API from CSV files, and I use your API to get this done.
CSV files describes elements from a business point of view and are not sorted alphbetically.
Example :
Property 1 :
sub-property B
sub-property C
sub-property A
When I use your lib to generate swagger, here is what I get :
Property 1 :
sub-property A
sub-property B
sub-property C
As you can see, sub-properties are sorted.
Here is my method's code to get yaml string :
return Yaml.pretty().writeValueAsString(factory);
where factory is a io.swagger.models.Swagger instance.
Would it be possible not to sort the properties when rendering Yaml ?
The text was updated successfully, but these errors were encountered: