Commit f2161e9
authored
fix(partner-api): enforce organization-output contract filtering (#80)
Enforce the `organization-output` API contract by filtering Confederatio
responses to only include documented fields.
Organization endpoints were returning undocumented fields (`name`,
`country`) that leaked from Confederatio's internal response.
Added response filtering pipeline to ensure only documented fields are
returned:
- `id` (UUID)
- `status` (active, suspended, terminated)
- `billing-address` (structured ISO 20022 address)
- `client-id`1 parent 0fa538d commit f2161e9
4 files changed
Lines changed: 14 additions & 19 deletions
File tree
- .github/workflows
- docs
- exoscale
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
4 | 16 | | |
5 | 17 | | |
6 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
| |||
702 | 695 | | |
703 | 696 | | |
704 | 697 | | |
705 | | - | |
| 698 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
| |||
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
135 | | - | |
136 | 133 | | |
137 | 134 | | |
138 | 135 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
147 | | - | |
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
| |||
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
184 | | - | |
185 | 180 | | |
186 | 181 | | |
187 | 182 | | |
| |||
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
193 | | - | |
194 | 188 | | |
195 | 189 | | |
196 | 190 | | |
| |||
224 | 218 | | |
225 | 219 | | |
226 | 220 | | |
227 | | - | |
228 | 221 | | |
229 | 222 | | |
230 | 223 | | |
| |||
233 | 226 | | |
234 | 227 | | |
235 | 228 | | |
236 | | - | |
237 | 229 | | |
238 | 230 | | |
239 | 231 | | |
240 | | - | |
241 | 232 | | |
242 | 233 | | |
243 | 234 | | |
| |||
246 | 237 | | |
247 | 238 | | |
248 | 239 | | |
249 | | - | |
250 | 240 | | |
251 | 241 | | |
252 | 242 | | |
| |||
0 commit comments