aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models/creator_entity.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:05:22 +0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:05:22 +0800
commit7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0 (patch)
tree2951d0e88652465d1fb4ff135c9affc46ea7bdda /python/fatcat_client/models/creator_entity.py
parent595a15cfd3b3bd1e06d13f6274867616bea61ef0 (diff)
downloadfatcat-7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0.tar.gz
fatcat-7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0.zip
python codegen
Diffstat (limited to 'python/fatcat_client/models/creator_entity.py')
-rw-r--r--python/fatcat_client/models/creator_entity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/fatcat_client/models/creator_entity.py b/python/fatcat_client/models/creator_entity.py
index 34035f81..8f04df19 100644
--- a/python/fatcat_client/models/creator_entity.py
+++ b/python/fatcat_client/models/creator_entity.py
@@ -82,7 +82,8 @@ class CreatorEntity(object):
self.surname = surname
if given_name is not None:
self.given_name = given_name
- self.display_name = display_name
+ if display_name is not None:
+ self.display_name = display_name
if state is not None:
self.state = state
if ident is not None:
@@ -190,6 +191,7 @@ class CreatorEntity(object):
def display_name(self):
"""Gets the display_name of this CreatorEntity. # noqa: E501
+ Required for valid entities # noqa: E501
:return: The display_name of this CreatorEntity. # noqa: E501
:rtype: str
@@ -200,12 +202,11 @@ class CreatorEntity(object):
def display_name(self, display_name):
"""Sets the display_name of this CreatorEntity.
+ Required for valid entities # noqa: E501
:param display_name: The display_name of this CreatorEntity. # noqa: E501
:type: str
"""
- if display_name is None:
- raise ValueError("Invalid value for `display_name`, must not be `None`") # noqa: E501
self._display_name = display_name