aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-11 15:58:22 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-11 15:58:22 -0800
commite93fe289d584f5bb1d8fca7fd3f476113104b411 (patch)
tree0df9eaf68522a85b5d8c584a2a6f670a2c0330b1 /rust
parent3733c096fc2ff837ad28ed487ef9cccff4d1e1ed (diff)
downloadfatcat-e93fe289d584f5bb1d8fca7fd3f476113104b411.tar.gz
fatcat-e93fe289d584f5bb1d8fca7fd3f476113104b411.zip
allow returning changelog index with editgroup
Diffstat (limited to 'rust')
-rw-r--r--rust/fatcat-api-spec/README.md2
-rw-r--r--rust/fatcat-api-spec/api.yaml4
-rw-r--r--rust/fatcat-api-spec/api/swagger.yaml8
-rw-r--r--rust/fatcat-api-spec/src/models.rs5
4 files changed, 18 insertions, 1 deletions
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<models::Editor>,
+ #[serde(rename = "changelog_index")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub changelog_index: Option<i64>,
+
#[serde(rename = "submitted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub submitted: Option<chrono::DateTime<chrono::Utc>>,
@@ -265,6 +269,7 @@ impl Editgroup {
editgroup_id: None,
editor_id: None,
editor: None,
+ changelog_index: None,
submitted: None,
description: None,
extra: None,