aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 17:05:03 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 17:05:03 -0700
commit92d297ffc895f471a5061250bdd49b71e50a95ab (patch)
tree4f232bf398e53cf2db3aef0dac4c4146390c848a /rust/fatcat-api
parent8e92be6e1e9396f4920c0f947337e1be643e1994 (diff)
downloadfatcat-92d297ffc895f471a5061250bdd49b71e50a95ab.tar.gz
fatcat-92d297ffc895f471a5061250bdd49b71e50a95ab.zip
refs and contribs
Diffstat (limited to 'rust/fatcat-api')
-rw-r--r--rust/fatcat-api/README.md2
-rw-r--r--rust/fatcat-api/api.yaml6
-rw-r--r--rust/fatcat-api/api/swagger.yaml31
-rw-r--r--rust/fatcat-api/src/models.rs4
4 files changed, 30 insertions, 13 deletions
diff --git a/rust/fatcat-api/README.md b/rust/fatcat-api/README.md
index 98eb45fe..e9ba065c 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-25T20:55:51.247Z
+- Build date: 2018-05-25T21:11:43.744Z
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 30e0f44d..827bb8d7 100644
--- a/rust/fatcat-api/api.yaml
+++ b/rust/fatcat-api/api.yaml
@@ -155,13 +155,11 @@ definitions:
contribs:
type: array
items:
- type: string
- #$ref: "#/definitions/release_contrib"
+ $ref: "#/definitions/release_contrib"
refs:
type: array
items:
- type: string
- #$ref: "#/definitions/release_ref"
+ $ref: "#/definitions/release_ref"
work_entity:
type: object
properties:
diff --git a/rust/fatcat-api/api/swagger.yaml b/rust/fatcat-api/api/swagger.yaml
index f173c53d..6e37a5d6 100644
--- a/rust/fatcat-api/api/swagger.yaml
+++ b/rust/fatcat-api/api/swagger.yaml
@@ -1169,11 +1169,11 @@ definitions:
refs:
type: "array"
items:
- type: "string"
+ $ref: "#/definitions/release_ref"
contribs:
type: "array"
items:
- type: "string"
+ $ref: "#/definitions/release_contrib"
issue:
type: "string"
example: "12"
@@ -1226,14 +1226,24 @@ definitions:
release_type: "preprint"
title: "title"
contribs:
- - "contribs"
- - "contribs"
+ - creator_stub: "creator_stub"
+ creator_id: "creator_id"
+ index: 6
+ contrib_type: "contrib_type"
+ - creator_stub: "creator_stub"
+ creator_id: "creator_id"
+ index: 6
+ contrib_type: "contrib_type"
revision: 42
volume: "volume"
pages: "pages"
refs:
- - "refs"
- - "refs"
+ - target_release_id: "target_release_id"
+ stub: "stub"
+ index: 0
+ - target_release_id: "target_release_id"
+ stub: "stub"
+ index: 0
extra: "{}"
editgroup_id: 16
state: "wip"
@@ -1409,6 +1419,10 @@ definitions:
type: "string"
stub:
type: "string"
+ example:
+ target_release_id: "target_release_id"
+ stub: "stub"
+ index: 0
upperCaseName: "RELEASE_REF"
release_contrib:
type: "object"
@@ -1422,6 +1436,11 @@ definitions:
type: "string"
contrib_type:
type: "string"
+ example:
+ creator_stub: "creator_stub"
+ creator_id: "creator_id"
+ index: 6
+ contrib_type: "contrib_type"
upperCaseName: "RELEASE_CONTRIB"
editgroup_edits:
properties:
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index 5118872f..350e9698 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -415,11 +415,11 @@ impl ReleaseContrib {
pub struct ReleaseEntity {
#[serde(rename = "refs")]
#[serde(skip_serializing_if = "Option::is_none")]
- pub refs: Option<Vec<String>>,
+ pub refs: Option<Vec<models::ReleaseRef>>,
#[serde(rename = "contribs")]
#[serde(skip_serializing_if = "Option::is_none")]
- pub contribs: Option<Vec<String>>,
+ pub contribs: Option<Vec<models::ReleaseContrib>>,
#[serde(rename = "issue")]
#[serde(skip_serializing_if = "Option::is_none")]