mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
openapi-typescript computes enum types from `const` usage in discriminated unions rather than from the enum definition itself, dropping values that only appear in some union members (e.g. "anima" from BaseModelType). Add a post-processing step that patches generated string enum types to match the actual OpenAPI schema definitions. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Alexander Eichhorn <alex@eichhorn.dev>