From 206acf1b37a1a34d5338c744e17ef2035cd2db58 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 24 Jan 2019 13:23:13 -0800 Subject: codegen schema tweaks --- python_client/fatcat_client/models/release_contrib.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python_client/fatcat_client/models/release_contrib.py') 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 -- cgit v1.2.3