getkin / kin-openapi

OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)
MIT License
2.49k stars 417 forks source link

YAML Marshal out of order #539

Open localhosted opened 2 years ago

localhosted commented 2 years ago

When following the tests in https://github.com/getkin/kin-openapi/blob/ed98f50ff5afcacd39585f52ef4cd2b0c3b0752a/openapi2/openapi2_test.go#L10 the marshalled yaml comes out of order, so the resulting yaml doesn't validate in any editor

fenollp commented 2 years ago

I'm not sure what you're talking about. Could you share some code that reproduces the issue or at least the YAML you mention?