Skip to content

Commit

Permalink
Update api spec (#548)
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 a8a2417 commit bf40fa3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
11 changes: 1 addition & 10 deletions kittycad/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4970,9 +4970,6 @@ pub struct ExtendedUser {
#[doc = "The user's first name."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
#[doc = "The user's Front ID. This is mostly used for internal mapping."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub front_id: Option<String>,
#[doc = "The user's GitHub handle."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub github: Option<String>,
Expand Down Expand Up @@ -5016,7 +5013,7 @@ impl std::fmt::Display for ExtendedUser {

#[cfg(feature = "tabled")]
impl tabled::Tabled for ExtendedUser {
const LENGTH: usize = 19;
const LENGTH: usize = 18;
fn fields(&self) -> Vec<std::borrow::Cow<'static, str>> {
vec![
if let Some(block) = &self.block {
Expand Down Expand Up @@ -5051,11 +5048,6 @@ impl tabled::Tabled for ExtendedUser {
} else {
String::new().into()
},
if let Some(front_id) = &self.front_id {
format!("{:?}", front_id).into()
} else {
String::new().into()
},
if let Some(github) = &self.github {
format!("{:?}", github).into()
} else {
Expand Down Expand Up @@ -5099,7 +5091,6 @@ impl tabled::Tabled for ExtendedUser {
"email".into(),
"email_verified".into(),
"first_name".into(),
"front_id".into(),
"github".into(),
"id".into(),
"image".into(),
Expand Down
11 changes: 1 addition & 10 deletions openapitor/tests/types/kittycad.rs.gen
Original file line number Diff line number Diff line change
Expand Up @@ -4892,9 +4892,6 @@ pub struct ExtendedUser {
#[doc = "The user's first name."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
#[doc = "The user's Front ID. This is mostly used for internal mapping."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub front_id: Option<String>,
#[doc = "The user's GitHub handle."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub github: Option<String>,
Expand Down Expand Up @@ -4936,7 +4933,7 @@ impl std::fmt::Display for ExtendedUser {

#[cfg(feature = "tabled")]
impl tabled::Tabled for ExtendedUser {
const LENGTH: usize = 19;
const LENGTH: usize = 18;
fn fields(&self) -> Vec<std::borrow::Cow<'static, str>> {
vec![
if let Some(block) = &self.block {
Expand Down Expand Up @@ -4971,11 +4968,6 @@ impl tabled::Tabled for ExtendedUser {
} else {
String::new().into()
},
if let Some(front_id) = &self.front_id {
format!("{:?}", front_id).into()
} else {
String::new().into()
},
if let Some(github) = &self.github {
format!("{:?}", github).into()
} else {
Expand Down Expand Up @@ -5019,7 +5011,6 @@ impl tabled::Tabled for ExtendedUser {
"email".into(),
"email_verified".into(),
"first_name".into(),
"front_id".into(),
"github".into(),
"id".into(),
"image".into(),
Expand Down
5 changes: 0 additions & 5 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -17693,11 +17693,6 @@
"description": "The user's first name.",
"type": "string"
},
"front_id": {
"nullable": true,
"description": "The user's Front ID. This is mostly used for internal mapping.",
"type": "string"
},
"github": {
"description": "The user's GitHub handle.",
"type": "string"
Expand Down

0 comments on commit bf40fa3

Please sign in to comment.