Skip to content

Commit 34fe5bd

Browse files
Removed some validations due to incorrect regex
1 parent b2e517a commit 34fe5bd

3 files changed

+63
-63
lines changed

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformation.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@ public function listInvalidProperties()
437437
if ($this->container['name'] === null) {
438438
$invalid_properties[] = "'name' can't be null";
439439
}
440-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
441-
$invalid_properties[] = "invalid value for 'name', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
442-
}
440+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
441+
// $invalid_properties[] = "invalid value for 'name', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
442+
// }
443443

444-
if (!is_null($this->container['doingBusinessAs']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['doingBusinessAs'])) {
445-
$invalid_properties[] = "invalid value for 'doingBusinessAs', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
446-
}
444+
// if (!is_null($this->container['doingBusinessAs']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['doingBusinessAs'])) {
445+
// $invalid_properties[] = "invalid value for 'doingBusinessAs', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
446+
// }
447447

448448
if (!is_null($this->container['description']) && !preg_match("/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/", $this->container['description'])) {
449449
$invalid_properties[] = "invalid value for 'description', must be conform to the pattern /[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/.";
@@ -496,12 +496,12 @@ public function valid()
496496
if ($this->container['name'] === null) {
497497
return false;
498498
}
499-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
500-
return false;
501-
}
502-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['doingBusinessAs'])) {
503-
return false;
504-
}
499+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
500+
// return false;
501+
// }
502+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['doingBusinessAs'])) {
503+
// return false;
504+
// }
505505
if (!preg_match("/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/", $this->container['description'])) {
506506
return false;
507507
}
@@ -545,9 +545,9 @@ public function getName()
545545
*/
546546
public function setName($name)
547547
{
548-
if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $name))) {
549-
throw new \InvalidArgumentException("invalid value for $name when calling Boardingv1registrationsOrganizationInformationBusinessInformation., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
550-
}
548+
// if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $name))) {
549+
// throw new \InvalidArgumentException("invalid value for $name when calling Boardingv1registrationsOrganizationInformationBusinessInformation., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
550+
// }
551551
$this->container['name'] = $name;
552552

553553
return $this;
@@ -569,9 +569,9 @@ public function getDoingBusinessAs()
569569
*/
570570
public function setDoingBusinessAs($doingBusinessAs)
571571
{
572-
if (!is_null($doingBusinessAs) && (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $doingBusinessAs))) {
573-
throw new \InvalidArgumentException("invalid value for $doingBusinessAs when calling Boardingv1registrationsOrganizationInformationBusinessInformation., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
574-
}
572+
// if (!is_null($doingBusinessAs) && (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $doingBusinessAs))) {
573+
// throw new \InvalidArgumentException("invalid value for $doingBusinessAs when calling Boardingv1registrationsOrganizationInformationBusinessInformation., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
574+
// }
575575
$this->container['doingBusinessAs'] = $doingBusinessAs;
576576

577577
return $this;

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationAddress.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ public function listInvalidProperties()
195195
if ($this->container['locality'] === null) {
196196
$invalid_properties[] = "'locality' can't be null";
197197
}
198-
if (!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $this->container['locality'])) {
199-
$invalid_properties[] = "invalid value for 'locality', must be conform to the pattern /^[0-9a-zA-Z _\\-¡-]+$/.";
200-
}
198+
// if (!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $this->container['locality'])) {
199+
// $invalid_properties[] = "invalid value for 'locality', must be conform to the pattern /^[0-9a-zA-Z _\\-¡-]+$/.";
200+
// }
201201

202-
if (!is_null($this->container['administrativeArea']) && !preg_match("/^[0-9a-zA-Z¡- ]*$/", $this->container['administrativeArea'])) {
203-
$invalid_properties[] = "invalid value for 'administrativeArea', must be conform to the pattern /^[0-9a-zA-Z¡- ]*$/.";
204-
}
202+
// if (!is_null($this->container['administrativeArea']) && !preg_match("/^[0-9a-zA-Z¡- ]*$/", $this->container['administrativeArea'])) {
203+
// $invalid_properties[] = "invalid value for 'administrativeArea', must be conform to the pattern /^[0-9a-zA-Z¡- ]*$/.";
204+
// }
205205

206206
if (!is_null($this->container['postalCode']) && !preg_match("/^[0-9a-zA-Z ]*$/", $this->container['postalCode'])) {
207207
$invalid_properties[] = "invalid value for 'postalCode', must be conform to the pattern /^[0-9a-zA-Z ]*$/.";
@@ -237,12 +237,12 @@ public function valid()
237237
if ($this->container['locality'] === null) {
238238
return false;
239239
}
240-
if (!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $this->container['locality'])) {
241-
return false;
242-
}
243-
if (!preg_match("/^[0-9a-zA-Z¡- ]*$/", $this->container['administrativeArea'])) {
244-
return false;
245-
}
240+
// if (!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $this->container['locality'])) {
241+
// return false;
242+
// }
243+
// if (!preg_match("/^[0-9a-zA-Z¡- ]*$/", $this->container['administrativeArea'])) {
244+
// return false;
245+
// }
246246
if (!preg_match("/^[0-9a-zA-Z ]*$/", $this->container['postalCode'])) {
247247
return false;
248248
}
@@ -338,9 +338,9 @@ public function getLocality()
338338
*/
339339
public function setLocality($locality)
340340
{
341-
if ((!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $locality))) {
342-
throw new \InvalidArgumentException("invalid value for $locality when calling Boardingv1registrationsOrganizationInformationBusinessInformationAddress., must conform to the pattern /^[0-9a-zA-Z _\\-¡-]+$/.");
343-
}
341+
// if ((!preg_match("/^[0-9a-zA-Z _\\-¡-]+$/", $locality))) {
342+
// throw new \InvalidArgumentException("invalid value for $locality when calling Boardingv1registrationsOrganizationInformationBusinessInformationAddress., must conform to the pattern /^[0-9a-zA-Z _\\-¡-]+$/.");
343+
// }
344344
$this->container['locality'] = $locality;
345345

346346
return $this;
@@ -362,9 +362,9 @@ public function getAdministrativeArea()
362362
*/
363363
public function setAdministrativeArea($administrativeArea)
364364
{
365-
if (!is_null($administrativeArea) && (!preg_match("/^[0-9a-zA-Z¡- ]*$/", $administrativeArea))) {
366-
throw new \InvalidArgumentException("invalid value for $administrativeArea when calling Boardingv1registrationsOrganizationInformationBusinessInformationAddress., must conform to the pattern /^[0-9a-zA-Z¡- ]*$/.");
367-
}
365+
// if (!is_null($administrativeArea) && (!preg_match("/^[0-9a-zA-Z¡- ]*$/", $administrativeArea))) {
366+
// throw new \InvalidArgumentException("invalid value for $administrativeArea when calling Boardingv1registrationsOrganizationInformationBusinessInformationAddress., must conform to the pattern /^[0-9a-zA-Z¡- ]*$/.");
367+
// }
368368
$this->container['administrativeArea'] = $administrativeArea;
369369

370370
return $this;

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,20 @@ public function listInvalidProperties()
171171
if ($this->container['firstName'] === null) {
172172
$invalid_properties[] = "'firstName' can't be null";
173173
}
174-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
175-
$invalid_properties[] = "invalid value for 'firstName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
176-
}
174+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
175+
// $invalid_properties[] = "invalid value for 'firstName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
176+
// }
177177

178-
if (!is_null($this->container['middleName']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
179-
$invalid_properties[] = "invalid value for 'middleName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
180-
}
178+
// if (!is_null($this->container['middleName']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
179+
// $invalid_properties[] = "invalid value for 'middleName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
180+
// }
181181

182182
if ($this->container['lastName'] === null) {
183183
$invalid_properties[] = "'lastName' can't be null";
184184
}
185-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
186-
$invalid_properties[] = "invalid value for 'lastName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
187-
}
185+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
186+
// $invalid_properties[] = "invalid value for 'lastName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
187+
// }
188188

189189
if ($this->container['phoneNumber'] === null) {
190190
$invalid_properties[] = "'phoneNumber' can't be null";
@@ -215,18 +215,18 @@ public function valid()
215215
if ($this->container['firstName'] === null) {
216216
return false;
217217
}
218-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
219-
return false;
220-
}
221-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
222-
return false;
223-
}
218+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
219+
// return false;
220+
// }
221+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
222+
// return false;
223+
// }
224224
if ($this->container['lastName'] === null) {
225225
return false;
226226
}
227-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
228-
return false;
229-
}
227+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
228+
// return false;
229+
// }
230230
if ($this->container['phoneNumber'] === null) {
231231
return false;
232232
}
@@ -259,9 +259,9 @@ public function getFirstName()
259259
*/
260260
public function setFirstName($firstName)
261261
{
262-
if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $firstName))) {
263-
throw new \InvalidArgumentException("invalid value for $firstName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
264-
}
262+
// if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $firstName))) {
263+
// throw new \InvalidArgumentException("invalid value for $firstName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
264+
// }
265265
$this->container['firstName'] = $firstName;
266266

267267
return $this;
@@ -283,9 +283,9 @@ public function getMiddleName()
283283
*/
284284
public function setMiddleName($middleName)
285285
{
286-
if (!is_null($middleName) && (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $middleName))) {
287-
throw new \InvalidArgumentException("invalid value for $middleName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
288-
}
286+
// if (!is_null($middleName) && (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $middleName))) {
287+
// throw new \InvalidArgumentException("invalid value for $middleName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
288+
// }
289289
$this->container['middleName'] = $middleName;
290290

291291
return $this;
@@ -307,9 +307,9 @@ public function getLastName()
307307
*/
308308
public function setLastName($lastName)
309309
{
310-
if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $lastName))) {
311-
throw new \InvalidArgumentException("invalid value for $lastName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
312-
}
310+
// if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $lastName))) {
311+
// throw new \InvalidArgumentException("invalid value for $lastName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
312+
// }
313313
$this->container['lastName'] = $lastName;
314314

315315
return $this;

0 commit comments

Comments
 (0)