summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:00:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:03:40 -0700
commit0a637859a2e0f0b2015cf567af3bfeab7bbd58da (patch)
tree993173f7b6b1597ae88eac472066c6bd8696a033 /rust/fatcat-api
parentca5dad8c6b9983c8e417310deac03173f815fa86 (diff)
downloadfatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.tar.gz
fatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.zip
file_release
Diffstat (limited to 'rust/fatcat-api')
-rw-r--r--rust/fatcat-api/README.md2
-rw-r--r--rust/fatcat-api/api.yaml5
-rw-r--r--rust/fatcat-api/api/swagger.yaml7
-rw-r--r--rust/fatcat-api/src/models.rs5
4 files changed, 18 insertions, 1 deletions
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<Vec<String>>,
+
#[serde(rename = "url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
@@ -368,6 +372,7 @@ pub struct FileEntity {
impl FileEntity {
pub fn new() -> FileEntity {
FileEntity {
+ releases: None,
url: None,
sha1: None,
size: None,