Commit ce48fc9
authored
feat: Support multiple OpenAPI specs per server (#97)
* feat: Add addSpec() builder method for multi-spec servers
Introduces two addSpec() overloads on OpenApiServer.Builder: one accepting
a Spec, handler map, and security-validator map, and one convenience form
with no validators. The build() method is rewritten to either consume the
bindings list (addSpec path) or synthesise a single binding from the legacy
spec()/handlers()/securityValidator() fields. Mixing the two forms throws
IllegalStateException. Cross-binding duplicate-basePath detection added.1 parent a1f1d76 commit ce48fc9
12 files changed
Lines changed: 1745 additions & 52 deletions
File tree
- docs/superpowers
- plans
- specs
- src
- main/java/com/retailsvc/http
- internal
- test
- java/com/retailsvc/http
- support
- resources/schemas
- v1
- v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
163 | 204 | | |
164 | 205 | | |
165 | 206 | | |
| |||
0 commit comments