Skip to content
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

Update api spec #501

Merged
merged 2 commits into from
Aug 13, 2024
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
21 changes: 11 additions & 10 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions kittycad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ http = { version = "^0.2.8", optional = true }
itertools = "0.13.0"
log = { version = "^0.4", features = ["serde"], optional = true }
mime_guess = "2.0.4"
parse-display = "0.10.0"
parse-display = "0.9.1"
phonenumber = "0.3.5"
rand = { version = "0.8", optional = true }
reqwest = { version = "0.11.27", default-features = false, features = ["json", "multipart", "rustls-tls"], optional = true }
Expand All @@ -37,7 +37,7 @@ serde = { version = "1", features = ["derive"] }
serde_bytes = "0.11"
serde_json = "1"
serde_urlencoded = { version = "^0.7", optional = true }
tabled = { version = "0.16.0", features = ["ansi"], optional = true }
tabled = { version = "0.15.0", features = ["ansi"], optional = true }
thiserror = "1"
tracing = { version = "^0.1", optional = true }
url = { version = "2", features = ["serde"] }
Expand Down
5 changes: 4 additions & 1 deletion kittycad/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9505,7 +9505,10 @@ pub enum ModelingCmd {
Defaults to empty vector."]
#[serde(default)]
object_ids: Vec<uuid::Uuid>,
#[doc = "How much to pad the view frame by."]
#[doc = "How much to pad the view frame by, as a fraction of the object(s) bounding box \
size. Negative padding will crop the view of the object proportionally. e.g. \
padding = 0.2 means the view will span 120% of the object(s) bounding box, and \
padding = -0.2 means the view will span 80% of the object(s) bounding box."]
padding: f64,
},
#[doc = "Fit the view to the scene with an isometric view."]
Expand Down
2 changes: 1 addition & 1 deletion openapitor/tests/types/kittycad.rs.gen
Original file line number Diff line number Diff line change
Expand Up @@ -9311,7 +9311,7 @@ pub enum ModelingCmd {
#[doc = "Which objects to fit camera to; if empty, fit to all non-default objects. Defaults to empty vector."]
#[serde(default)]
object_ids: Vec<uuid::Uuid>,
#[doc = "How much to pad the view frame by."]
#[doc = "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box."]
padding: f64,
},
#[doc = "Fit the view to the scene with an isometric view."]
Expand Down
2 changes: 1 addition & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21706,7 +21706,7 @@
}
},
"padding": {
"description": "How much to pad the view frame by.",
"description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.",
"type": "number",
"format": "float"
},
Expand Down