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

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ def byte_array(self, byte_array):
9494
:param byte_array: The byte_array of this ByteArrayResult. # noqa: E501
9595
:type byte_array: str
9696
"""
97-
if self.local_vars_configuration.client_side_validation and byte_array is None: # noqa: E501
98-
raise ValueError("Invalid value for `byte_array`, must not be `None`") # noqa: E501
9997

10098
self._byte_array = byte_array
10199

@@ -203,8 +201,6 @@ def result_type(self, result_type):
203201
:param result_type: The result_type of this ByteArrayResult. # noqa: E501
204202
:type result_type: int
205203
"""
206-
if self.local_vars_configuration.client_side_validation and result_type is None: # noqa: E501
207-
raise ValueError("Invalid value for `result_type`, must not be `None`") # noqa: E501
208204

209205
self._result_type = result_type
210206

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def byte_array(self, byte_array):
7070
:param byte_array: The byte_array of this ByteArrayResultAllOf. # noqa: E501
7171
:type byte_array: str
7272
"""
73-
if self.local_vars_configuration.client_side_validation and byte_array is None: # noqa: E501
74-
raise ValueError("Invalid value for `byte_array`, must not be `None`") # noqa: E501
7573

7674
self._byte_array = byte_array
7775

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ def document_name(self, document_name):
110110
:param document_name: The document_name of this ChosenDocumentType. # noqa: E501
111111
:type document_name: str
112112
"""
113-
if self.local_vars_configuration.client_side_validation and document_name is None: # noqa: E501
114-
raise ValueError("Invalid value for `document_name`, must not be `None`") # noqa: E501
115113

116114
self._document_name = document_name
117115

@@ -135,8 +133,6 @@ def id(self, id):
135133
:param id: The id of this ChosenDocumentType. # noqa: E501
136134
:type id: int
137135
"""
138-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
139-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
140136

141137
self._id = id
142138

@@ -160,8 +156,6 @@ def p(self, p):
160156
:param p: The p of this ChosenDocumentType. # noqa: E501
161157
:type p: float
162158
"""
163-
if self.local_vars_configuration.client_side_validation and p is None: # noqa: E501
164-
raise ValueError("Invalid value for `p`, must not be `None`") # noqa: E501
165159
if (self.local_vars_configuration.client_side_validation and
166160
p is not None and p > 1): # noqa: E501
167161
raise ValueError("Invalid value for `p`, must be a value less than or equal to `1`") # noqa: E501
@@ -191,8 +185,6 @@ def rotated180(self, rotated180):
191185
:param rotated180: The rotated180 of this ChosenDocumentType. # noqa: E501
192186
:type rotated180: bool
193187
"""
194-
if self.local_vars_configuration.client_side_validation and rotated180 is None: # noqa: E501
195-
raise ValueError("Invalid value for `rotated180`, must not be `None`") # noqa: E501
196188

197189
self._rotated180 = rotated180
198190

@@ -214,8 +206,6 @@ def rfid_presence(self, rfid_presence):
214206
:param rfid_presence: The rfid_presence of this ChosenDocumentType. # noqa: E501
215207
:type rfid_presence: RfidLocation
216208
"""
217-
if self.local_vars_configuration.client_side_validation and rfid_presence is None: # noqa: E501
218-
raise ValueError("Invalid value for `rfid_presence`, must not be `None`") # noqa: E501
219209

220210
self._rfid_presence = rfid_presence
221211

@@ -237,8 +227,6 @@ def fdsid_list(self, fdsid_list):
237227
:param fdsid_list: The fdsid_list of this ChosenDocumentType. # noqa: E501
238228
:type fdsid_list: FDSIDList
239229
"""
240-
if self.local_vars_configuration.client_side_validation and fdsid_list is None: # noqa: E501
241-
raise ValueError("Invalid value for `fdsid_list`, must not be `None`") # noqa: E501
242230

243231
self._fdsid_list = fdsid_list
244232

@@ -262,8 +250,6 @@ def necessary_lights(self, necessary_lights):
262250
:param necessary_lights: The necessary_lights of this ChosenDocumentType. # noqa: E501
263251
:type necessary_lights: int
264252
"""
265-
if self.local_vars_configuration.client_side_validation and necessary_lights is None: # noqa: E501
266-
raise ValueError("Invalid value for `necessary_lights`, must not be `None`") # noqa: E501
267253

268254
self._necessary_lights = necessary_lights
269255

@@ -287,8 +273,6 @@ def check_authenticity(self, check_authenticity):
287273
:param check_authenticity: The check_authenticity of this ChosenDocumentType. # noqa: E501
288274
:type check_authenticity: int
289275
"""
290-
if self.local_vars_configuration.client_side_validation and check_authenticity is None: # noqa: E501
291-
raise ValueError("Invalid value for `check_authenticity`, must not be `None`") # noqa: E501
292276

293277
self._check_authenticity = check_authenticity
294278

@@ -312,8 +296,6 @@ def uv_exp(self, uv_exp):
312296
:param uv_exp: The uv_exp of this ChosenDocumentType. # noqa: E501
313297
:type uv_exp: int
314298
"""
315-
if self.local_vars_configuration.client_side_validation and uv_exp is None: # noqa: E501
316-
raise ValueError("Invalid value for `uv_exp`, must not be `None`") # noqa: E501
317299

318300
self._uv_exp = uv_exp
319301

@@ -337,8 +319,6 @@ def authenticity_necessary_lights(self, authenticity_necessary_lights):
337319
:param authenticity_necessary_lights: The authenticity_necessary_lights of this ChosenDocumentType. # noqa: E501
338320
:type authenticity_necessary_lights: int
339321
"""
340-
if self.local_vars_configuration.client_side_validation and authenticity_necessary_lights is None: # noqa: E501
341-
raise ValueError("Invalid value for `authenticity_necessary_lights`, must not be `None`") # noqa: E501
342322

343323
self._authenticity_necessary_lights = authenticity_necessary_lights
344324

@@ -362,8 +342,6 @@ def ovi_exp(self, ovi_exp):
362342
:param ovi_exp: The ovi_exp of this ChosenDocumentType. # noqa: E501
363343
:type ovi_exp: float
364344
"""
365-
if self.local_vars_configuration.client_side_validation and ovi_exp is None: # noqa: E501
366-
raise ValueError("Invalid value for `ovi_exp`, must not be `None`") # noqa: E501
367345

368346
self._ovi_exp = ovi_exp
369347

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ def one_candidate(self, one_candidate):
9797
:param one_candidate: The one_candidate of this ChosenDocumentTypeResult. # noqa: E501
9898
:type one_candidate: OneCandidate
9999
"""
100-
if self.local_vars_configuration.client_side_validation and one_candidate is None: # noqa: E501
101-
raise ValueError("Invalid value for `one_candidate`, must not be `None`") # noqa: E501
102100

103101
self._one_candidate = one_candidate
104102

@@ -227,8 +225,6 @@ def result_type(self, result_type):
227225
:param result_type: The result_type of this ChosenDocumentTypeResult. # noqa: E501
228226
:type result_type: int
229227
"""
230-
if self.local_vars_configuration.client_side_validation and result_type is None: # noqa: E501
231-
raise ValueError("Invalid value for `result_type`, must not be `None`") # noqa: E501
232228

233229
self._result_type = result_type
234230

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def one_candidate(self, one_candidate):
7373
:param one_candidate: The one_candidate of this ChosenDocumentTypeResultAllOf. # noqa: E501
7474
:type one_candidate: OneCandidate
7575
"""
76-
if self.local_vars_configuration.client_side_validation and one_candidate is None: # noqa: E501
77-
raise ValueError("Invalid value for `one_candidate`, must not be `None`") # noqa: E501
7876

7977
self._one_candidate = one_candidate
8078

0 commit comments

Comments
 (0)