summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat_client/api/default_api.py4
-rw-r--r--python/fatcat_client/models/release_entity.py28
-rw-r--r--rust/fatcat-api-spec/README.md2
-rw-r--r--rust/fatcat-api-spec/api.yaml6
-rw-r--r--rust/fatcat-api-spec/api/swagger.yaml9
-rw-r--r--rust/fatcat-api-spec/src/models.rs5
6 files changed, 47 insertions, 7 deletions
diff --git a/python/fatcat_client/api/default_api.py b/python/fatcat_client/api/default_api.py
index 4e7d33a9..e4d20b12 100644
--- a/python/fatcat_client/api/default_api.py
+++ b/python/fatcat_client/api/default_api.py
@@ -4370,7 +4370,7 @@ class DefaultApi(object):
:param async bool
:param str id: (required)
- :param str expand: List of sub-entities to expand in response. For releases, 'files' and 'container' are valid.
+ :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid.
:param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
:return: ReleaseEntity
If the method is called asynchronously,
@@ -4393,7 +4393,7 @@ class DefaultApi(object):
:param async bool
:param str id: (required)
- :param str expand: List of sub-entities to expand in response. For releases, 'files' and 'container' are valid.
+ :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid.
:param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid.
:return: ReleaseEntity
If the method is called asynchronously,
diff --git a/python/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py
index a63d74a5..e3b232f4 100644
--- a/python/fatcat_client/models/release_entity.py
+++ b/python/fatcat_client/models/release_entity.py
@@ -51,6 +51,7 @@ class ReleaseEntity(object):
'isbn13': 'str',
'wikidata_qid': 'str',
'doi': 'str',
+ 'release_year': 'int',
'release_date': 'date',
'release_status': 'str',
'release_type': 'str',
@@ -82,6 +83,7 @@ class ReleaseEntity(object):
'isbn13': 'isbn13',
'wikidata_qid': 'wikidata_qid',
'doi': 'doi',
+ 'release_year': 'release_year',
'release_date': 'release_date',
'release_status': 'release_status',
'release_type': 'release_type',
@@ -98,7 +100,7 @@ class ReleaseEntity(object):
'edit_extra': 'edit_extra'
}
- def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, core_id=None, pmcid=None, pmid=None, isbn13=None, wikidata_qid=None, doi=None, release_date=None, release_status=None, release_type=None, container_id=None, files=None, container=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ def __init__(self, abstracts=None, refs=None, contribs=None, language=None, publisher=None, pages=None, issue=None, volume=None, core_id=None, pmcid=None, pmid=None, isbn13=None, wikidata_qid=None, doi=None, release_year=None, release_date=None, release_status=None, release_type=None, container_id=None, files=None, container=None, work_id=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
"""ReleaseEntity - a model defined in Swagger""" # noqa: E501
self._abstracts = None
@@ -115,6 +117,7 @@ class ReleaseEntity(object):
self._isbn13 = None
self._wikidata_qid = None
self._doi = None
+ self._release_year = None
self._release_date = None
self._release_status = None
self._release_type = None
@@ -159,6 +162,8 @@ class ReleaseEntity(object):
self.wikidata_qid = wikidata_qid
if doi is not None:
self.doi = doi
+ if release_year is not None:
+ self.release_year = release_year
if release_date is not None:
self.release_date = release_date
if release_status is not None:
@@ -485,6 +490,27 @@ class ReleaseEntity(object):
self._doi = doi
@property
+ def release_year(self):
+ """Gets the release_year of this ReleaseEntity. # noqa: E501
+
+
+ :return: The release_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
+ """
+ return self._release_year
+
+ @release_year.setter
+ def release_year(self, release_year):
+ """Sets the release_year of this ReleaseEntity.
+
+
+ :param release_year: The release_year of this ReleaseEntity. # noqa: E501
+ :type: int
+ """
+
+ self._release_year = release_year
+
+ @property
def release_date(self):
"""Gets the release_date of this ReleaseEntity. # noqa: E501
diff --git a/rust/fatcat-api-spec/README.md b/rust/fatcat-api-spec/README.md
index c399bb9c..ee09a73e 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: 2018-12-14T09:17:12.171Z
+- Build date: 2018-12-24T21:43:06.957Z
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 a30bb55e..965cbfbc 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -201,6 +201,10 @@ definitions:
release_date:
type: string
format: date
+ release_year:
+ type: integer
+ example: 2014
+ format: int64
doi:
type: string
#format: custom
@@ -1267,7 +1271,7 @@ paths:
in: query
type: string
required: false
- description: "List of sub-entities to expand in response. For releases, 'files' and 'container' are valid."
+ description: "List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid."
- name: hide
in: query
type: string
diff --git a/rust/fatcat-api-spec/api/swagger.yaml b/rust/fatcat-api-spec/api/swagger.yaml
index 98474f13..0446dc8d 100644
--- a/rust/fatcat-api-spec/api/swagger.yaml
+++ b/rust/fatcat-api-spec/api/swagger.yaml
@@ -2411,8 +2411,8 @@ paths:
example: "\"id_example\".to_string()"
- name: "expand"
in: "query"
- description: "List of sub-entities to expand in response. For releases, 'files'\
- \ and 'container' are valid."
+ description: "List of sub-entities to expand in response. For releases, 'files',\
+ \ 'container', and 'creators' are valid."
required: false
type: "string"
formatString: "{:?}"
@@ -4442,6 +4442,10 @@ definitions:
doi:
type: "string"
example: "10.1234/abcde.789"
+ release_year:
+ type: "integer"
+ format: "int64"
+ example: 2014
release_date:
type: "string"
format: "date"
@@ -4569,6 +4573,7 @@ definitions:
mimetype: "application/xml+jats"
lang: "en"
content: "<jats:p>Some abstract thing goes here</jats:p>"
+ release_year: 2014
release_type: "book"
wikidata_qid: "wikidata_qid"
pmid: "pmid"
diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs
index 5b9010cd..b8bd9a70 100644
--- a/rust/fatcat-api-spec/src/models.rs
+++ b/rust/fatcat-api-spec/src/models.rs
@@ -538,6 +538,10 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub doi: Option<String>,
+ #[serde(rename = "release_year")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub release_year: Option<i64>,
+
#[serde(rename = "release_date")]
#[serde(skip_serializing_if = "Option::is_none")]
pub release_date: Option<chrono::NaiveDate>,
@@ -619,6 +623,7 @@ impl ReleaseEntity {
isbn13: None,
wikidata_qid: None,
doi: None,
+ release_year: None,
release_date: None,
release_status: None,
release_type: None,