From 7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 14 Dec 2018 22:05:22 +0800 Subject: python codegen --- python/fatcat_client/models/container_entity.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/fatcat_client/models/container_entity.py') diff --git a/python/fatcat_client/models/container_entity.py b/python/fatcat_client/models/container_entity.py index 5fc48a7e..5ed7eb0a 100644 --- a/python/fatcat_client/models/container_entity.py +++ b/python/fatcat_client/models/container_entity.py @@ -87,7 +87,8 @@ class ContainerEntity(object): self.issnl = issnl if publisher is not None: self.publisher = publisher - self.name = name + if name is not None: + self.name = name if edit_extra is not None: self.edit_extra = edit_extra if extra is not None: @@ -216,6 +217,7 @@ class ContainerEntity(object): def name(self): """Gets the name of this ContainerEntity. # noqa: E501 + Required for valid entities # noqa: E501 :return: The name of this ContainerEntity. # noqa: E501 :rtype: str @@ -226,12 +228,11 @@ class ContainerEntity(object): def name(self, name): """Sets the name of this ContainerEntity. + Required for valid entities # noqa: E501 :param name: The name of this ContainerEntity. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name -- cgit v1.2.3