Skip to content

Commit

Permalink
Generate OAS3 as code
Browse files Browse the repository at this point in the history
Leverages `utoipa` to generate the OAS3.

Changes:
- Splits `/ratings` and `/pipelines`.
- Moves schemas to schema.rs.
- Adds OAS 3.1 from Axum.
- Adds OAS 3.0, down-converted from the OAS 3.1.
- Regenerates the bnaclient.
- Updates the Justfile.
- Makes enums not optional.
- Uses APIErrors struct for errors.
- Adds ApiError examples for each support HTTP status (400, 401, 403, 404).
- Adds ErrorResponses enum to group all errors.

Signed-off-by: Rémy Greinhofer <[email protected]>
  • Loading branch information
rgreinho committed Dec 30, 2024
1 parent 3d8cdca commit f0fc922
Show file tree
Hide file tree
Showing 71 changed files with 10,887 additions and 2,979 deletions.
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,25 @@ once_cell = "1.20.2"
query_map = "0.7.0"
reqwest = "0.12.8"
rstest = "0.23.0"
sea-orm = "1.1.0"
sea-orm-migration = "1.0.0"
sea-orm = "1.1.1"
sea-orm-macros = "1.1.1"
sea-orm-migration = "1.1.1"
sea-query = "0.32.1"
serde = "1.0.214"
serde_json = "1.0.132"
serde_plain = "1.0.2"
serde_with = "3.11.0"
thiserror = "2.0.3"
thiserror = "2.0.9"
time = "0.3.37"
tokio = "1.41.0"
tower-http = "0.6.2"
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false }
url = "2.3.1"
urlencoding = "2.1.3"
utoipa = "5.3.0"
utoipa-axum = "0.1.3"
utoipa-swagger-ui = "8.1.0"
uuid = "1.11.0"

[dependencies]
Expand Down
Loading

0 comments on commit f0fc922

Please sign in to comment.