Skip to content

[AI-3724] Regenerate the Kotlin, .NET and Rust models from the current OpenAPI spec - #2353

Closed
darkoatanasovski wants to merge 2 commits into
mainfrom
AI-3724
Closed

darkoatanasovski wants to merge 2 commits into
mainfrom
AI-3724

Conversation

@darkoatanasovski

@darkoatanasovski darkoatanasovski commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

main has failed two CI checks since #2177: the kotlin job in CI (client SDKs), and the sdks job in CI (SDKs). The description of ErrorDetail.code in openapi.yaml changed (new error codes such as task_changed), but the Kotlin, .NET and Rust clients were never regenerated, so each SDK's "generated code is in step with the spec" check fails. Every open PR inherits these failures.

Linear: AI-3724

Changes

Regenerated from the spec on main. In each SDK only the doc comment on the error code changes; no model changes.

  • Kotlin: ErrorDetail.kt (uv run sdks/kotlin/generate.py)
  • .NET: Generated/Models.cs (dotnet run --project tools/Generate)
  • Rust: src/types.rs (cargo run -p generate)

Validation

The Kotlin diff is exactly the one the failing CI job printed, and running its generator again leaves the tree clean. The Rust and .NET --check steps, cargo fmt --check and dotnet format --verify-no-changes all pass locally. JS, PHP, Ruby, Go and Dart already passed in CI.

The spec's ErrorDetail.code description changed on main without the Kotlin
models being regenerated, so the "Generated models match the spec" check in
CI (client SDKs) fails on every PR. This is the output of
`uv run sdks/kotlin/generate.py`: only the doc comment on ErrorDetail.code
changes.
Same stale ErrorDetail.code description as the Kotlin models: the .NET and
Rust "in step with the spec" checks in CI (SDKs) fail without it. Output of
`dotnet run --project tools/Generate` and `cargo run -p generate`; only the
doc comment changes.
@darkoatanasovski darkoatanasovski changed the title [AI-3724] Regenerate the Kotlin models from the current OpenAPI spec [AI-3724] Regenerate the Kotlin, .NET and Rust models from the current OpenAPI spec Nov 24, 2026
@darkoatanasovski

Copy link
Copy Markdown
Contributor Author

Superseded by #2359, which regenerated the .NET, Rust and Kotlin models on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant