Skip to content

Commit

Permalink
Use Pydantic models from OpenAPI spec for API requests (#62)
Browse files Browse the repository at this point in the history
* scripts: generate API models from OpenAPI spec.

* Use auto-generated API models.

---------

Co-authored-by: Wilfried Huss <[email protected]>
  • Loading branch information
airwoodix and wilfried-huss authored Apr 25, 2023
1 parent 57ce320 commit a613a86
Show file tree
Hide file tree
Showing 16 changed files with 2,211 additions and 272 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ repos:
rev: "0.9.2"
hooks:
- id: pyproject-fmt
- repo: local
hooks:
- id: check-api-models
name: check generated API models
entry: ./scripts/api_models.py generate
language: script
pass_filenames: false
always_run: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Always raise `TranspilerError` on errors in the custom transpilation passes #57
* Add `AQTSampler`, a specialized implementation of the `Sampler` primitive #60
* Auto-generate and use Pydantic models for the API requests payloads #62

## qiskit-aqt-provider v0.12.0

Expand Down
Loading

0 comments on commit a613a86

Please sign in to comment.