-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/issue 3051 swagger preserve rpc order (#3500)
* add preserveRPCOrder option to registry options * add preserve_rpc_order flag to protoc-gen-openapiv2 main * convert openapiPathsObject from map to ordered data structure * alphabetically sort paths if preserveRPCOrder is false during swagger file gen * add tests for path order preservation in generate function * add tests for path preservation in the renderServices function * fix bugs in generator.go tests * regenerate files * fix incorrect boolean argument to require generate * fix test error log in template_test.go not reflecting openapiPathItemObject change * create custom json and yaml marshallers for openapiPathsObject * marshal PathItemObject in custom yaml marshaller, instead of encode * regenerate files * further test template.go functions * fix golangci warnings * document `preserve_rpc_order` option * regenerate files after rebase
- Loading branch information
Showing
8 changed files
with
2,429 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.