Skip to content

Commit

Permalink
[github] add default derive for MinimalRepository, WorkflowRun, and C…
Browse files Browse the repository at this point in the history
…heckAnnotation (#47)
  • Loading branch information
chantra committed Feb 8, 2023
1 parent 3e00836 commit 099b694
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions generator/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ pub fn generate_types(ts: &mut TypeSpace, proper_name: &str) -> Result<String> {
|| sn == "DescriptionlessJobOptionsDataType"
|| sn == "SubmitJobOptions"
|| sn == "SubmitJobOptionsData"
|| sn == "MinimalRepository"
|| sn == "WorkflowRun"
|| sn == "CheckAnnotation"
{
a(
"#[derive(Serialize, Default, Deserialize, PartialEq, Debug, Clone, \
Expand Down
6 changes: 3 additions & 3 deletions github/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6123,7 +6123,7 @@ pub struct License {
}

/// Minimal Repository
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
#[derive(Serialize, Default, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
pub struct MinimalRepository {
#[serde(
default,
Expand Down Expand Up @@ -10850,7 +10850,7 @@ pub struct SimpleCommit {
}

/// An invocation of a workflow
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
#[derive(Serialize, Default, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
pub struct WorkflowRun {
#[serde(
default,
Expand Down Expand Up @@ -12998,7 +12998,7 @@ pub struct CheckRun {
}

/// Check Annotation
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
#[derive(Serialize, Default, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
pub struct CheckAnnotation {
#[serde(
default,
Expand Down

0 comments on commit 099b694

Please sign in to comment.