aboutsummaryrefslogtreecommitdiffstats
path: root/python_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-24 13:23:13 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-24 13:23:13 -0800
commit206acf1b37a1a34d5338c744e17ef2035cd2db58 (patch)
tree82a5407182d42ba44bf0821f96b403d37f111efe /python_client
parente2b4675c34a6de76196255dc21389e225e54f22b (diff)
downloadfatcat-206acf1b37a1a34d5338c744e17ef2035cd2db58.tar.gz
fatcat-206acf1b37a1a34d5338c744e17ef2035cd2db58.zip
codegen schema tweaks
Diffstat (limited to 'python_client')
-rw-r--r--python_client/fatcat_client/models/release_contrib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python_client/fatcat_client/models/release_contrib.py b/python_client/fatcat_client/models/release_contrib.py
index e823e43e..3c4a4f71 100644
--- a/python_client/fatcat_client/models/release_contrib.py
+++ b/python_client/fatcat_client/models/release_contrib.py
@@ -104,6 +104,7 @@ class ReleaseContrib(object):
def creator_id(self):
"""Gets the creator_id of this ReleaseContrib. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
:return: The creator_id of this ReleaseContrib. # noqa: E501
:rtype: str
@@ -114,10 +115,17 @@ class ReleaseContrib(object):
def creator_id(self, creator_id):
"""Sets the creator_id of this ReleaseContrib.
+ base32-encoded unique identifier # noqa: E501
:param creator_id: The creator_id of this ReleaseContrib. # noqa: E501
:type: str
"""
+ if creator_id is not None and len(creator_id) > 26:
+ raise ValueError("Invalid value for `creator_id`, length must be less than or equal to `26`") # noqa: E501
+ if creator_id is not None and len(creator_id) < 26:
+ raise ValueError("Invalid value for `creator_id`, length must be greater than or equal to `26`") # noqa: E501
+ if creator_id is not None and not re.search('[a-zA-Z2-7]{26}', creator_id): # noqa: E501
+ raise ValueError("Invalid value for `creator_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._creator_id = creator_id