Skip to content

2025-04 initial codegen #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
259 changes: 259 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ once_cell = "1.19"

# openapi
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "3.12", features = ["base64"] }
# serde_json = "^1.0"
url = "^2.5"
uuid = { version = "^1.8", features = ["serde", "v4"] }
Expand Down
2 changes: 1 addition & 1 deletion codegen/apis
Submodule apis updated from 4de445 to df8c28
2 changes: 1 addition & 1 deletion codegen/build-oas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -z "$version" ]; then
fi

docker run --rm -v $(pwd):/workspace openapitools/openapi-generator-cli:v7.6.0 generate \
--input-spec /workspace/codegen/apis/_build/$version/control_$version.oas.yaml \
--input-spec /workspace/codegen/apis/_build/$version/db_data_$version.oas.yaml \
--generator-name rust \
--output /workspace/$tempdir \
--additional-properties "packageVersion=0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version := "2024-07"
api_version := "2025-04"

# Lint files and run tests with optional specific test cases
test *tests: lint
Expand Down
2 changes: 2 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
edition = "2024"
tab_spaces = 4
2 changes: 1 addition & 1 deletion src/models/index_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct IndexModel {
/// Index name
pub name: String,
/// Index dimension
pub dimension: i32,
pub dimension: Option<i32>,
/// Index metric
pub metric: Metric,
/// Index host
Expand Down
Loading
Loading