[GODRIVER-1109] ConstructorParameter should have stable generation for multiple parameters Created: 04/Jun/19 Updated: 17/Jul/20 Resolved: 17/Jul/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Core API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Codegen everything |
| Description |
|
The drivergen.Operation.ConstructorParameter method iterates the map of request fields, which has an undefined order. This can be fixed by iterating the keys into a []string, sorting that slice, and then iterating it, looking up the keys in the map for the drivergen.RequestField. |