Skip to content

Commit 3aeb247

Browse files
committed
Fix python client
1 parent 191df3e commit 3aeb247

File tree

127 files changed

+526
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+526
-938
lines changed

generator-templates/model.mustache

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ class {{classname}}(object):
108108
:type {{name}}: {{dataType}}
109109
"""
110110
{{^isNullable}}
111-
{{#required}}
112-
if self.local_vars_configuration.client_side_validation and {{name}} is None: # noqa: E501
113-
raise ValueError("Invalid value for `{{name}}`, must not be `None`") # noqa: E501
114-
{{/required}}
115111
{{/isNullable}}
116112
{{#isEnum}}
117113
{{#isContainer}}

regula/documentreader/webclient/gen/models/area_array.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ def count(self, count):
7878
:param count: The count of this AreaArray. # noqa: E501
7979
:type count: float
8080
"""
81-
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
82-
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
8381

8482
self._count = count
8583

@@ -101,8 +99,6 @@ def list(self, list):
10199
:param list: The list of this AreaArray. # noqa: E501
102100
:type list: list[RectangleCoordinates]
103101
"""
104-
if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
105-
raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
106102

107103
self._list = list
108104

@@ -124,8 +120,6 @@ def points(self, points):
124120
:param points: The points of this AreaArray. # noqa: E501
125121
:type points: list[PointArray]
126122
"""
127-
if self.local_vars_configuration.client_side_validation and points is None: # noqa: E501
128-
raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501
129123

130124
self._points = points
131125

regula/documentreader/webclient/gen/models/area_container.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ def count(self, count):
7676
:param count: The count of this AreaContainer. # noqa: E501
7777
:type count: int
7878
"""
79-
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
80-
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
8179

8280
self._count = count
8381

@@ -99,8 +97,6 @@ def list(self, list):
9997
:param list: The list of this AreaContainer. # noqa: E501
10098
:type list: list[RectangleCoordinates]
10199
"""
102-
if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
103-
raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
104100

105101
self._list = list
106102

@@ -122,8 +118,6 @@ def points(self, points):
122118
:param points: The points of this AreaContainer. # noqa: E501
123119
:type points: list[PointsContainer]
124120
"""
125-
if self.local_vars_configuration.client_side_validation and points is None: # noqa: E501
126-
raise ValueError("Invalid value for `points`, must not be `None`") # noqa: E501
127121

128122
self._points = points
129123

regula/documentreader/webclient/gen/models/authenticity_check_list.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def count(self, count):
7474
:param count: The count of this AuthenticityCheckList. # noqa: E501
7575
:type count: int
7676
"""
77-
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
78-
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
7977

8078
self._count = count
8179

@@ -99,8 +97,6 @@ def list(self, list):
9997
:param list: The list of this AuthenticityCheckList. # noqa: E501
10098
:type list: list[AuthenticityCheckResult]
10199
"""
102-
if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
103-
raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
104100

105101
self._list = list
106102

regula/documentreader/webclient/gen/models/authenticity_check_result.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ def type(self, type):
8181
:param type: The type of this AuthenticityCheckResult. # noqa: E501
8282
:type type: AuthenticityResultType
8383
"""
84-
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
85-
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
8684

8785
self._type = type
8886

@@ -104,8 +102,6 @@ def result(self, result):
104102
:param result: The result of this AuthenticityCheckResult. # noqa: E501
105103
:type result: CheckResult
106104
"""
107-
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
108-
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
109105

110106
self._result = result
111107

@@ -150,8 +146,6 @@ def list(self, list):
150146
:param list: The list of this AuthenticityCheckResult. # noqa: E501
151147
:type list: list[AuthenticityCheckResultItem]
152148
"""
153-
if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
154-
raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
155149

156150
self._list = list
157151

regula/documentreader/webclient/gen/models/authenticity_check_result_item.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ def type(self, type):
8585
:param type: The type of this AuthenticityCheckResultItem. # noqa: E501
8686
:type type: int
8787
"""
88-
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
89-
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
9088

9189
self._type = type
9290

regula/documentreader/webclient/gen/models/authenticity_result.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def authenticity_check_list(self, authenticity_check_list):
9292
:param authenticity_check_list: The authenticity_check_list of this AuthenticityResult. # noqa: E501
9393
:type authenticity_check_list: AuthenticityCheckList
9494
"""
95-
if self.local_vars_configuration.client_side_validation and authenticity_check_list is None: # noqa: E501
96-
raise ValueError("Invalid value for `authenticity_check_list`, must not be `None`") # noqa: E501
9795

9896
self._authenticity_check_list = authenticity_check_list
9997

@@ -201,8 +199,6 @@ def result_type(self, result_type):
201199
:param result_type: The result_type of this AuthenticityResult. # noqa: E501
202200
:type result_type: int
203201
"""
204-
if self.local_vars_configuration.client_side_validation and result_type is None: # noqa: E501
205-
raise ValueError("Invalid value for `result_type`, must not be `None`") # noqa: E501
206202

207203
self._result_type = result_type
208204

regula/documentreader/webclient/gen/models/authenticity_result_all_of.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def authenticity_check_list(self, authenticity_check_list):
6868
:param authenticity_check_list: The authenticity_check_list of this AuthenticityResultAllOf. # noqa: E501
6969
:type authenticity_check_list: AuthenticityCheckList
7070
"""
71-
if self.local_vars_configuration.client_side_validation and authenticity_check_list is None: # noqa: E501
72-
raise ValueError("Invalid value for `authenticity_check_list`, must not be `None`") # noqa: E501
7371

7472
self._authenticity_check_list = authenticity_check_list
7573

regula/documentreader/webclient/gen/models/bc_pdf417_info.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def angle(self, angle):
8888
:param angle: The angle of this BcPDF417INFO. # noqa: E501
8989
:type angle: float
9090
"""
91-
if self.local_vars_configuration.client_side_validation and angle is None: # noqa: E501
92-
raise ValueError("Invalid value for `angle`, must not be `None`") # noqa: E501
9391

9492
self._angle = angle
9593

@@ -111,8 +109,6 @@ def bc_column(self, bc_column):
111109
:param bc_column: The bc_column of this BcPDF417INFO. # noqa: E501
112110
:type bc_column: int
113111
"""
114-
if self.local_vars_configuration.client_side_validation and bc_column is None: # noqa: E501
115-
raise ValueError("Invalid value for `bc_column`, must not be `None`") # noqa: E501
116112

117113
self._bc_column = bc_column
118114

@@ -134,8 +130,6 @@ def bc_error_level(self, bc_error_level):
134130
:param bc_error_level: The bc_error_level of this BcPDF417INFO. # noqa: E501
135131
:type bc_error_level: int
136132
"""
137-
if self.local_vars_configuration.client_side_validation and bc_error_level is None: # noqa: E501
138-
raise ValueError("Invalid value for `bc_error_level`, must not be `None`") # noqa: E501
139133

140134
self._bc_error_level = bc_error_level
141135

@@ -157,8 +151,6 @@ def bc_row(self, bc_row):
157151
:param bc_row: The bc_row of this BcPDF417INFO. # noqa: E501
158152
:type bc_row: int
159153
"""
160-
if self.local_vars_configuration.client_side_validation and bc_row is None: # noqa: E501
161-
raise ValueError("Invalid value for `bc_row`, must not be `None`") # noqa: E501
162154

163155
self._bc_row = bc_row
164156

@@ -180,8 +172,6 @@ def min_x(self, min_x):
180172
:param min_x: The min_x of this BcPDF417INFO. # noqa: E501
181173
:type min_x: float
182174
"""
183-
if self.local_vars_configuration.client_side_validation and min_x is None: # noqa: E501
184-
raise ValueError("Invalid value for `min_x`, must not be `None`") # noqa: E501
185175

186176
self._min_x = min_x
187177

@@ -203,8 +193,6 @@ def min_y(self, min_y):
203193
:param min_y: The min_y of this BcPDF417INFO. # noqa: E501
204194
:type min_y: float
205195
"""
206-
if self.local_vars_configuration.client_side_validation and min_y is None: # noqa: E501
207-
raise ValueError("Invalid value for `min_y`, must not be `None`") # noqa: E501
208196

209197
self._min_y = min_y
210198

regula/documentreader/webclient/gen/models/bc_roidetect.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def bottom(self, bottom):
8080
:param bottom: The bottom of this BcROIDETECT. # noqa: E501
8181
:type bottom: int
8282
"""
83-
if self.local_vars_configuration.client_side_validation and bottom is None: # noqa: E501
84-
raise ValueError("Invalid value for `bottom`, must not be `None`") # noqa: E501
8583

8684
self._bottom = bottom
8785

@@ -103,8 +101,6 @@ def left(self, left):
103101
:param left: The left of this BcROIDETECT. # noqa: E501
104102
:type left: int
105103
"""
106-
if self.local_vars_configuration.client_side_validation and left is None: # noqa: E501
107-
raise ValueError("Invalid value for `left`, must not be `None`") # noqa: E501
108104

109105
self._left = left
110106

@@ -126,8 +122,6 @@ def right(self, right):
126122
:param right: The right of this BcROIDETECT. # noqa: E501
127123
:type right: int
128124
"""
129-
if self.local_vars_configuration.client_side_validation and right is None: # noqa: E501
130-
raise ValueError("Invalid value for `right`, must not be `None`") # noqa: E501
131125

132126
self._right = right
133127

@@ -149,8 +143,6 @@ def top(self, top):
149143
:param top: The top of this BcROIDETECT. # noqa: E501
150144
:type top: int
151145
"""
152-
if self.local_vars_configuration.client_side_validation and top is None: # noqa: E501
153-
raise ValueError("Invalid value for `top`, must not be `None`") # noqa: E501
154146

155147
self._top = top
156148

0 commit comments

Comments
 (0)