David Ethell

Results 24 comments of David Ethell

> @pmcelhaney I could be wrong, but can't you just run counterfact multiple times on different apis now? At least when I tried it, it seemed to work. It seemingly...

> That works for generating code (`-g`) but as it stands you can't point to two OpenAPI files at once while running the server. (There are a couple of reasons...

> 3. Add a new option like `--spec [base-path]`. We can add multiple files with multiple `--spec` flags. This last one gets my vote. Seems more explicit and clear. Using...

I would think just committing the components and paths would be enough. Types are ephemeral since they are regenerated anyway.

I took a shot at having Copilot convert the file, but it wasn't right. Maybe a good starting point, but not a working conversion.

I'd say adding it to `$` is sufficient rather than delaying the entire thing. If we want to test an overall delay in the browser we can use the DevTools...

I've played with the repo and am trying some alternate ways to load the file. This gets closer: ``` import { readFileSync } from "fs"; let data; try { const...

Ok, using an absolute path works. Probably a better way to help the compiled code in `.cache` find the desired json file.

> I've discovered that `require` is already in scope in `_.context.ts` (even though it's an ES module—confusing) and while `require('../../test.json')` doesn't work (it looks for `../../test.json.cjs`), `require.resolve('../../test.json')` _does_ work, so...

> @pmcelhaney mind if I work on this issue? I say go for it!