You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where standardResponses is a collection of common responses. The responses method is a builder for ApiResponses class from swagger that implement LinkedHashMap so the order should be preserved.
Everything should work but the output does not keep the same order I used while inserting the responses, the cuprit seems to be the JSONObject used for formatting:
I have found an issue while creating an OpenAPI definition with this library.
I define my operation responses as:
Where standardResponses is a collection of common responses. The
responses
method is a builder forApiResponses
class from swagger that implementLinkedHashMap
so the order should be preserved.Everything should work but the output does not keep the same order I used while inserting the responses, the cuprit seems to be the
JSONObject
used for formatting:kotlin-openapi3-dsl/src/main/kotlin/cc/vileda/openapi/dsl/OpenApiDsl.kt
Lines 33 to 37 in 3d08c12
Looks like there is a debate about this problem at the moment, see issue
The text was updated successfully, but these errors were encountered: