Skip to content

Commit

Permalink
remove required and type from moon label def
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser committed Jan 17, 2024
1 parent ecec086 commit 9f8a55c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions api/src/resources/label_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,4 @@ pub struct NewLabelDefPretrained {
pub struct MoonFormFieldDef {
pub name: String,
pub kind: String,
pub required: bool,
#[serde(rename = "type")]
pub field_type: String,
}
4 changes: 0 additions & 4 deletions cli/tests/test_datasets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ fn test_create_update_dataset_custom() {
moon_form: Some(vec![MoonFormFieldDef {
name: "luna".to_owned(),
kind: "ent".to_owned(),
required: false,
field_type: "string".to_owned(),
}]),
},
],
Expand All @@ -270,8 +268,6 @@ fn test_create_update_dataset_custom() {
moon_form: Some(vec![MoonFormFieldDef {
name: "luna".to_owned(),
kind: "ent".to_owned(),
required: false,
field_type: "string".to_owned(),
}]),
},
],
Expand Down

0 comments on commit 9f8a55c

Please sign in to comment.