-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
Better Order of Methods #520
Comments
I think that it depends on how Go organize maps. Btw, +1 here: it should be awesome to have an order. |
@ilteoood Wouldn't it be sufficient to manually serialize the PathItem struct in the correct order? From my pont of view the PathItem is the only point where it is really annoying. kin-openapi/openapi3/path_item.go Lines 32 to 34 in 8287d36
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I generate a json from an openapi3.T the order of the Paths/Methods is pretty unusal (DELETE comes before GET). From my point of view this is caused due to the lexical order so Delete is serialized before Get and Post.
Is there maybe a way/... the serialize the spec in the "usual" order?
The text was updated successfully, but these errors were encountered: