From 0a637859a2e0f0b2015cf567af3bfeab7bbd58da Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 May 2018 18:00:59 -0700 Subject: file_release --- rust/fatcat-api/README.md | 2 +- rust/fatcat-api/api.yaml | 5 +++++ rust/fatcat-api/api/swagger.yaml | 7 +++++++ rust/fatcat-api/src/models.rs | 5 +++++ 4 files changed, 18 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-api') diff --git a/rust/fatcat-api/README.md b/rust/fatcat-api/README.md index e9ba065c..b67ad8f1 100644 --- a/rust/fatcat-api/README.md +++ b/rust/fatcat-api/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: 2018-05-25T21:11:43.744Z +- Build date: 2018-05-26T00:48:55.047Z This autogenerated project defines an API crate `fatcat` which contains: * An `Api` trait defining the API in Rust. diff --git a/rust/fatcat-api/api.yaml b/rust/fatcat-api/api.yaml index 827bb8d7..8dd4177f 100644 --- a/rust/fatcat-api/api.yaml +++ b/rust/fatcat-api/api.yaml @@ -121,6 +121,11 @@ definitions: type: string format: url example: "https://example.edu/~frau/prcding.pdf" + releases: + type: array + items: + type: string + #format: uuid release_entity: type: object required: diff --git a/rust/fatcat-api/api/swagger.yaml b/rust/fatcat-api/api/swagger.yaml index 6e37a5d6..ce85d813 100644 --- a/rust/fatcat-api/api/swagger.yaml +++ b/rust/fatcat-api/api/swagger.yaml @@ -1115,6 +1115,10 @@ definitions: file_entity: type: "object" properties: + releases: + type: "array" + items: + type: "string" url: type: "string" format: "url" @@ -1158,6 +1162,9 @@ definitions: editgroup_id: 16 state: "wip" url: "https://example.edu/~frau/prcding.pdf" + releases: + - "releases" + - "releases" revision: 42 upperCaseName: "FILE_ENTITY" release_entity: diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs index 350e9698..8d3abe7d 100644 --- a/rust/fatcat-api/src/models.rs +++ b/rust/fatcat-api/src/models.rs @@ -327,6 +327,10 @@ impl ErrorResponse { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct FileEntity { + #[serde(rename = "releases")] + #[serde(skip_serializing_if = "Option::is_none")] + pub releases: Option>, + #[serde(rename = "url")] #[serde(skip_serializing_if = "Option::is_none")] pub url: Option, @@ -368,6 +372,7 @@ pub struct FileEntity { impl FileEntity { pub fn new() -> FileEntity { FileEntity { + releases: None, url: None, sha1: None, size: None, -- cgit v1.2.3