Repository navigation
[AI-3724] Regenerate the Kotlin, .NET and Rust models from the current OpenAPI spec - #2353
Closed
darkoatanasovski wants to merge 2 commits into
Closed
darkoatanasovski wants to merge 2 commits into
darkoatanasovski wants to merge 2 commits into
Conversation
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.
Contributor
Author
|
Superseded by #2359, which regenerated the .NET, Rust and Kotlin models on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
mainhas failed two CI checks since #2177: the kotlin job in CI (client SDKs), and the sdks job in CI (SDKs). The description ofErrorDetail.codeinopenapi.yamlchanged (new error codes such astask_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 errorcodechanges; no model changes.ErrorDetail.kt(uv run sdks/kotlin/generate.py)Generated/Models.cs(dotnet run --project tools/Generate)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
--checksteps,cargo fmt --checkanddotnet format --verify-no-changesall pass locally. JS, PHP, Ruby, Go and Dart already passed in CI.