Skip to content

Commit 09437b2

Browse files
authored
2025-04 initial codegen (#65)
## Problem Describe the purpose of this change. What problem is being solved and why? ## Solution Describe the approach you took. Link to any relevant bugs, issues, docs, or other resources. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Describe specific steps for validating this change.
1 parent 2ccc8c1 commit 09437b2

File tree

94 files changed

+4402
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+4402
-288
lines changed

Cargo.lock

+259
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ once_cell = "1.19"
2828

2929
# openapi
3030
serde = { version = "^1.0", features = ["derive"] }
31+
serde_with = { version = "3.12", features = ["base64"] }
3132
# serde_json = "^1.0"
3233
url = "^2.5"
3334
uuid = { version = "^1.8", features = ["serde", "v4"] }

codegen/apis

Submodule apis updated from 4de4456 to df8c283

codegen/build-oas.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [ -z "$version" ]; then
1414
fi
1515

1616
docker run --rm -v $(pwd):/workspace openapitools/openapi-generator-cli:v7.6.0 generate \
17-
--input-spec /workspace/codegen/apis/_build/$version/control_$version.oas.yaml \
17+
--input-spec /workspace/codegen/apis/_build/$version/db_data_$version.oas.yaml \
1818
--generator-name rust \
1919
--output /workspace/$tempdir \
2020
--additional-properties "packageVersion=0.0.1"

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version := "2024-07"
1+
api_version := "2025-04"
22

33
# Lint files and run tests with optional specific test cases
44
test *tests: lint

rustfmt.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
edition = "2024"
2+
tab_spaces = 4

src/models/index_model.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct IndexModel {
77
/// Index name
88
pub name: String,
99
/// Index dimension
10-
pub dimension: i32,
10+
pub dimension: Option<i32>,
1111
/// Index metric
1212
pub metric: Metric,
1313
/// Index host

0 commit comments

Comments
 (0)