Skip to content

Commit

Permalink
Update api spec (#296)
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 edd1e81 commit f306470
Show file tree
Hide file tree
Showing 8 changed files with 14 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.50\""
"install": "[dependencies]\nkittycad = \"0.2.51\""
}
},
{
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.50"
version = "0.2.51"
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.50"
kittycad = "0.2.51"
```

## 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.50"
//! kittycad = "0.2.51"
//! ```
//!
//! ## Basic example
Expand Down
2 changes: 2 additions & 0 deletions kittycad/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7846,6 +7846,8 @@ pub enum ModelingCmd {
#[doc = "Sketch on some entity (e.g. a plane, a face)"]
#[serde(rename = "enable_sketch_mode")]
EnableSketchMode {
#[doc = "Should the camera move at all?"]
adjust_camera: bool,
#[doc = "Should we animate or snap for the camera transition?"]
animated: bool,
#[doc = "Which entity to sketch on."]
Expand Down
2 changes: 2 additions & 0 deletions openapitor/tests/types/kittycad.rs.gen
Original file line number Diff line number Diff line change
Expand Up @@ -7677,6 +7677,8 @@ pub enum ModelingCmd {
#[doc = "Sketch on some entity (e.g. a plane, a face)"]
#[serde(rename = "enable_sketch_mode")]
EnableSketchMode {
#[doc = "Should the camera move at all?"]
adjust_camera: bool,
#[doc = "Should we animate or snap for the camera transition?"]
animated: bool,
#[doc = "Which entity to sketch on."]
Expand Down
5 changes: 5 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -17415,6 +17415,10 @@
"description": "Sketch on some entity (e.g. a plane, a face)",
"type": "object",
"properties": {
"adjust_camera": {
"description": "Should the camera move at all?",
"type": "boolean"
},
"animated": {
"description": "Should we animate or snap for the camera transition?",
"type": "boolean"
Expand All @@ -17436,6 +17440,7 @@
}
},
"required": [
"adjust_camera",
"animated",
"entity_id",
"ortho",
Expand Down

0 comments on commit f306470

Please sign in to comment.