You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/superpowers/plans/2026-05-22-multiple-specs.md
+8-85Lines changed: 8 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,101 +296,24 @@ git commit -m "refactor: Drive OpenApiServer from a list of SpecBinding"
296
296
297
297
This avoids adding any new `openapi*.json|yaml` files — per project memory, fixtures are minimised. The helper reads the existing `/openapi.json`, deep-clones the parsed `Map`, and lets a caller override `servers[0].url`.
298
298
299
-
-[]**Step 1: Write the helper**
299
+
-[x]**Step 1: Write the helper**
300
300
301
-
```java
302
-
packagecom.retailsvc.http.support;
301
+
Created with proper imports (no inline FQNs per `feedback_no_inline_fqn.md`) and deep-clone logic.
303
302
304
-
importcom.retailsvc.http.spec.Spec;
305
-
importjava.io.InputStream;
306
-
importjava.util.ArrayList;
307
-
importjava.util.LinkedHashMap;
308
-
importjava.util.List;
309
-
importjava.util.Map;
303
+
-[x]**Step 2: Verify it compiles**
310
304
311
-
/**
312
-
* Test-only helper: loads {@code /openapi.json} from the classpath, deep-clones the parsed map,
313
-
* and re-points {@code servers[0].url} so callers can derive multiple {@link Spec} instances from
314
-
* a single fixture file.
315
-
*/
316
-
publicfinalclassSpecFixtures {
317
-
318
-
privateSpecFixtures() {}
305
+
Ran: `mvn -q test-compile`
306
+
Result: BUILD SUCCESS. Compiled class at `target/test-classes/com/retailsvc/http/support/SpecFixtures.class`.
319
307
320
-
/** Loads the test spec and rewrites {@code servers[0].url} to {@code newServerUrl}. */
0 commit comments