effect
effect copied to clipboard
OpenApi code generation for AI http client produces code in different order at every run
What version of Effect is running?
No response
What steps can reproduce the bug?
- Navigate to
packages/ai/google - Comment out the last 2 lines of https://github.com/Effect-TS/effect/blob/main/packages/ai/google/scripts/generate.sh
- Run
GOOGLE_API_KEY=your-key ./scripts/generate.sh - Rename
src/Generated.tsintosrc/Generated-new.ts - Run
GOOGLE_API_KEY=your-key ./scripts/generate.shonce again - Compare both
Generated.tsfiles, 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.
Additional information
No response