Commit 382a38d
authored
[Internal] Added Service.NamedIdMap (#1016)
## Changes
This new function on the service allows to get access to NameIdMap from
service instead of list method as it was done previously.
Previously in code generation relying on `.List.NameIdMap` could lead to
undetermenistic behaviour if there were more than 1 List operation on
service. Why this is allowed, service can have only 1 name to id method
anyway.
Thus, new `Service.NamedIdMap` will find `NamedIdMap` from all methods
it has and if there are more than 1 - will panic.
## Tests
Used here:
- [x] `make test` passing
- [x] `make fmt` applied
- [x] relevant integration tests applied1 parent 1ef9931 commit 382a38d
1 file changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
102 | 131 | | |
103 | 132 | | |
104 | | - | |
| 133 | + | |
105 | 134 | | |
106 | 135 | | |
107 | 136 | | |
| |||
111 | 140 | | |
112 | 141 | | |
113 | 142 | | |
114 | | - | |
| 143 | + | |
115 | 144 | | |
116 | 145 | | |
117 | 146 | | |
| |||
121 | 150 | | |
122 | 151 | | |
123 | 152 | | |
124 | | - | |
| 153 | + | |
125 | 154 | | |
126 | 155 | | |
127 | 156 | | |
| |||
131 | 160 | | |
132 | 161 | | |
133 | 162 | | |
134 | | - | |
| 163 | + | |
135 | 164 | | |
136 | 165 | | |
137 | 166 | | |
| |||
141 | 170 | | |
142 | 171 | | |
143 | 172 | | |
144 | | - | |
| 173 | + | |
145 | 174 | | |
146 | 175 | | |
147 | 176 | | |
| |||
0 commit comments