Skip to content

Commit

Permalink
Update api spec (#311)
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 55eabc6 commit adf1d3e
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion kittycad.rs.patch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"path": "/info/x-rust",
"value": {
"client": "// Authenticate via an API token.\nlet client = kittycad::Client::new(\"$TOKEN\");\n\n// - OR -\n\n// Authenticate with your token and host parsed from the environment variables:\n// `KITTYCAD_API_TOKEN`.\nlet client = kittycad::Client::new_from_env();",
"install": "[dependencies]\nkittycad = \"0.2.62\""
"install": "[dependencies]\nkittycad = \"0.2.63\""
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion kittycad/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kittycad"
description = "A fully generated & opinionated API client for the KittyCAD API."
version = "0.2.62"
version = "0.2.63"
documentation = "https://docs.rs/kittycad"
readme = "README.md"
repository = "https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad"
Expand Down
2 changes: 1 addition & 1 deletion kittycad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
kittycad = "0.2.62"
kittycad = "0.2.63"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion kittycad/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
//!
//! ```toml
//! [dependencies]
//! kittycad = "0.2.62"
//! kittycad = "0.2.63"
//! ```
//!
//! ## Basic example
Expand Down
8 changes: 8 additions & 0 deletions kittycad/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8369,10 +8369,15 @@ pub enum ModelingCmd {
angle: Angle,
#[doc = "The axis of the extrusion (taken from the origin)"]
axis: Point3D,
#[doc = "If true, the axis is interpreted within the 2D space of the solid 2D's plane"]
axis_is_2d: bool,
#[doc = "The origin of the extrusion axis"]
origin: Point3D,
#[doc = "Which sketch to revolve. Must be a closed 2D solid."]
target: uuid::Uuid,
#[doc = "The maximum acceptable surface gap computed between the revolution surface \
joints. Must be positive (i.e. greater than zero)."]
tolerance: f64,
},
#[doc = "Command for revolving a solid 2d about a brep edge"]
#[serde(rename = "revolve_about_edge")]
Expand All @@ -8384,6 +8389,9 @@ pub enum ModelingCmd {
edge_id: uuid::Uuid,
#[doc = "Which sketch to revolve. Must be a closed 2D solid."]
target: uuid::Uuid,
#[doc = "The maximum acceptable surface gap computed between the revolution surface \
joints. Must be positive (i.e. greater than zero)."]
tolerance: f64,
},
#[doc = "Closes a path, converting it to a 2D solid."]
#[serde(rename = "close_path")]
Expand Down
6 changes: 6 additions & 0 deletions openapitor/tests/types/kittycad.rs.gen
Original file line number Diff line number Diff line change
Expand Up @@ -8231,10 +8231,14 @@ pub enum ModelingCmd {
angle: Angle,
#[doc = "The axis of the extrusion (taken from the origin)"]
axis: Point3D,
#[doc = "If true, the axis is interpreted within the 2D space of the solid 2D's plane"]
axis_is_2d: bool,
#[doc = "The origin of the extrusion axis"]
origin: Point3D,
#[doc = "Which sketch to revolve. Must be a closed 2D solid."]
target: uuid::Uuid,
#[doc = "The maximum acceptable surface gap computed between the revolution surface joints. Must be positive (i.e. greater than zero)."]
tolerance: f64,
},
#[doc = "Command for revolving a solid 2d about a brep edge"]
#[serde(rename = "revolve_about_edge")]
Expand All @@ -8245,6 +8249,8 @@ pub enum ModelingCmd {
edge_id: uuid::Uuid,
#[doc = "Which sketch to revolve. Must be a closed 2D solid."]
target: uuid::Uuid,
#[doc = "The maximum acceptable surface gap computed between the revolution surface joints. Must be positive (i.e. greater than zero)."]
tolerance: f64,
},
#[doc = "Closes a path, converting it to a 2D solid."]
#[serde(rename = "close_path")]
Expand Down
23 changes: 23 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -18489,6 +18489,10 @@
}
]
},
"axis_is_2d": {
"description": "If true, the axis is interpreted within the 2D space of the solid 2D's plane",
"type": "boolean"
},
"origin": {
"description": "The origin of the extrusion axis",
"allOf": [
Expand All @@ -18505,6 +18509,14 @@
}
]
},
"tolerance": {
"description": "The maximum acceptable surface gap computed between the revolution surface joints. Must be positive (i.e. greater than zero).",
"allOf": [
{
"$ref": "#/components/schemas/LengthUnit"
}
]
},
"type": {
"type": "string",
"enum": [
Expand All @@ -18515,8 +18527,10 @@
"required": [
"angle",
"axis",
"axis_is_2d",
"origin",
"target",
"tolerance",
"type"
]
},
Expand Down Expand Up @@ -18545,6 +18559,14 @@
}
]
},
"tolerance": {
"description": "The maximum acceptable surface gap computed between the revolution surface joints. Must be positive (i.e. greater than zero).",
"allOf": [
{
"$ref": "#/components/schemas/LengthUnit"
}
]
},
"type": {
"type": "string",
"enum": [
Expand All @@ -18556,6 +18578,7 @@
"angle",
"edge_id",
"target",
"tolerance",
"type"
]
},
Expand Down

0 comments on commit adf1d3e

Please sign in to comment.