diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-24 13:23:13 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-24 13:23:13 -0800 |
commit | 206acf1b37a1a34d5338c744e17ef2035cd2db58 (patch) | |
tree | 82a5407182d42ba44bf0821f96b403d37f111efe /python_client | |
parent | e2b4675c34a6de76196255dc21389e225e54f22b (diff) | |
download | fatcat-206acf1b37a1a34d5338c744e17ef2035cd2db58.tar.gz fatcat-206acf1b37a1a34d5338c744e17ef2035cd2db58.zip |
codegen schema tweaks
Diffstat (limited to 'python_client')
-rw-r--r-- | python_client/fatcat_client/models/release_contrib.py | 8 |
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 |