effect icon indicating copy to clipboard operation
effect copied to clipboard

OpenApi code generation for AI http client produces code in different order at every run

Open lildesert opened this issue 4 weeks ago • 0 comments

What version of Effect is running?

No response

What steps can reproduce the bug?

  1. Navigate to packages/ai/google
  2. Comment out the last 2 lines of https://github.com/Effect-TS/effect/blob/main/packages/ai/google/scripts/generate.sh
  3. Run GOOGLE_API_KEY=your-key ./scripts/generate.sh
  4. Rename src/Generated.ts into src/Generated-new.ts
  5. Run GOOGLE_API_KEY=your-key ./scripts/generate.sh once again
  6. Compare both Generated.ts files, they have the same content but the code order changed

What is the expected behavior?

The generated output stays the same at every run (except if the API spec was updated)

What do you see instead?

Code in a different order every time.

Image

Additional information

No response

lildesert avatar Dec 03 '25 14:12 lildesert