Skip to content

Commit

Permalink
Update api spec (#501)
Browse files Browse the repository at this point in the history
* YOYO NEW API SPEC!

* I have generated the library!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 93b521e commit 7a19230
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
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

0 comments on commit 7a19230

Please sign in to comment.