Regenerate backend model for upstream OpenAPI drift#53
Open
Copilot wants to merge 2 commits into
Open
Conversation
Copilot
AI
changed the title
[WIP] Update client to match upstream OpenAPI spec changes
Regenerate backend model for upstream OpenAPI drift
Jun 1, 2026
splch
approved these changes
Jun 1, 2026
natestemen
approved these changes
Jun 2, 2026
natestemen
left a comment
There was a problem hiding this comment.
LGTM, but two questions:
- What does
supported_gatesmean? If the compiler is run when non-native gates are present, why can't any gate be decomposed into the native gate set? - Instead of opening an issue and then manually (even if partially automated with an agent), why not just have the spec drift action open the PR directly and assign us? E.g. something like this: #55. Or is something needed for you (or someone else) to be in the loop for that I'm missing?
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.
Summary
Vendored
openapi.jsonhad drifted from upstream for theBackendschema. This updates the vendored spec and regenerates the client so the Python model surface matches current API fields.openapi.json)Backendproperties:supported_error_mitigationssupported_gatessupported_native_gatesionq_core/models/backend.py)Backendmodel now includes the new optional fields in typed attrs +to_dict/from_dict.tests/test_models.py)Test plan
python -m uv run pytestImportant
Most code in
ionq_core/is auto-generated and overwritten on regeneration.See CONTRIBUTING.md for which files are safe to edit.