From e93fe289d584f5bb1d8fca7fd3f476113104b411 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 11 Jan 2019 15:58:22 -0800 Subject: allow returning changelog index with editgroup --- rust/fatcat-api-spec/README.md | 2 +- rust/fatcat-api-spec/api.yaml | 4 ++++ rust/fatcat-api-spec/api/swagger.yaml | 8 ++++++++ rust/fatcat-api-spec/src/models.rs | 5 +++++ 4 files changed, 18 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-api-spec') diff --git a/rust/fatcat-api-spec/README.md b/rust/fatcat-api-spec/README.md index d56747df..ee031f66 100644 --- a/rust/fatcat-api-spec/README.md +++ b/rust/fatcat-api-spec/README.md @@ -13,7 +13,7 @@ To see how to make this your own, look here: [README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) - API version: 0.1.0 -- Build date: 2019-01-11T22:05:57.895Z +- Build date: 2019-01-11T23:46:50.303Z This autogenerated project defines an API crate `fatcat` which contains: * An `Api` trait defining the API in Rust. diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml index c621c39f..70a27b76 100644 --- a/rust/fatcat-api-spec/api.yaml +++ b/rust/fatcat-api-spec/api.yaml @@ -467,6 +467,10 @@ definitions: <<: *FATCATIDENT editor: $ref: "#/definitions/editor" + changelog_index: # not returned in all contexts... + type: integer + example: 1048576 + format: int64 submitted: type: string format: date-time diff --git a/rust/fatcat-api-spec/api/swagger.yaml b/rust/fatcat-api-spec/api/swagger.yaml index 1f9e21d6..7a1c2755 100644 --- a/rust/fatcat-api-spec/api/swagger.yaml +++ b/rust/fatcat-api-spec/api/swagger.yaml @@ -8102,6 +8102,7 @@ definitions: editor_id: "q3nouwy3nnbsvo3h5klxsx4a7y" is_bot: true username: "zerocool93" + changelog_index: 1048576 submitted: "2000-01-23T04:56:07.000+00:00" extra: "{}" edits: @@ -8254,6 +8255,7 @@ definitions: editor_id: "q3nouwy3nnbsvo3h5klxsx4a7y" is_bot: true username: "zerocool93" + changelog_index: 1048576 submitted: "2000-01-23T04:56:07.000+00:00" extra: "{}" edits: @@ -8501,6 +8503,10 @@ definitions: pattern: "[a-zA-Z2-7]{26}" editor: $ref: "#/definitions/editor" + changelog_index: + type: "integer" + format: "int64" + example: 1048576 submitted: type: "string" format: "date-time" @@ -8521,6 +8527,7 @@ definitions: editor_id: "q3nouwy3nnbsvo3h5klxsx4a7y" is_bot: true username: "zerocool93" + changelog_index: 1048576 submitted: "2000-01-23T04:56:07.000+00:00" extra: "{}" edits: @@ -8731,6 +8738,7 @@ definitions: editor_id: "q3nouwy3nnbsvo3h5klxsx4a7y" is_bot: true username: "zerocool93" + changelog_index: 1048576 submitted: "2000-01-23T04:56:07.000+00:00" extra: "{}" edits: diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs index 1738662b..5d05b737 100644 --- a/rust/fatcat-api-spec/src/models.rs +++ b/rust/fatcat-api-spec/src/models.rs @@ -238,6 +238,10 @@ pub struct Editgroup { #[serde(skip_serializing_if = "Option::is_none")] pub editor: Option, + #[serde(rename = "changelog_index")] + #[serde(skip_serializing_if = "Option::is_none")] + pub changelog_index: Option, + #[serde(rename = "submitted")] #[serde(skip_serializing_if = "Option::is_none")] pub submitted: Option>, @@ -265,6 +269,7 @@ impl Editgroup { editgroup_id: None, editor_id: None, editor: None, + changelog_index: None, submitted: None, description: None, extra: None, -- cgit v1.2.3