Swagger: Make the order of paths in swagger spec deterministic #5425
Labels
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
The order of paths in swagger spec changes each time we regenerate it, making it very hard to inspect changes in PRs carefully.
We need to make the order deterministic.
emicklei/go-restful#185 refers to fixing go-restful so that it emits paths in swagger spec in the order in which they were registered.
We also need to fix our code. Right now, we extract the paths from a map and hence register them in a random order.
The text was updated successfully, but these errors were encountered: