Skip to content

Commit bd719b3

Browse files
Removed incorrect regex validations
1 parent 6721b60 commit bd719b3

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
@@ -436,13 +436,13 @@ public function listInvalidProperties()
436436
if ($this->container['name'] === null) {
437437
$invalid_properties[] = "'name' can't be null";
438438
}
439-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
440-
$invalid_properties[] = "invalid value for 'name', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
441-
}
439+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['name'])) {
440+
// $invalid_properties[] = "invalid value for 'name', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.";
441+
// }
442442

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

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

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

576576
return $this;

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationAddress.php

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

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

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

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

369369
return $this;

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact.php

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

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

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

188188
if ($this->container['phoneNumber'] === null) {
189189
$invalid_properties[] = "'phoneNumber' can't be null";
@@ -214,18 +214,18 @@ public function valid()
214214
if ($this->container['firstName'] === null) {
215215
return false;
216216
}
217-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
218-
return false;
219-
}
220-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
221-
return false;
222-
}
217+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['firstName'])) {
218+
// return false;
219+
// }
220+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['middleName'])) {
221+
// return false;
222+
// }
223223
if ($this->container['lastName'] === null) {
224224
return false;
225225
}
226-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
227-
return false;
228-
}
226+
// if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $this->container['lastName'])) {
227+
// return false;
228+
// }
229229
if ($this->container['phoneNumber'] === null) {
230230
return false;
231231
}
@@ -258,9 +258,9 @@ public function getFirstName()
258258
*/
259259
public function setFirstName($firstName)
260260
{
261-
if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $firstName))) {
262-
throw new \InvalidArgumentException("invalid value for $firstName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
263-
}
261+
// if ((!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/", $firstName))) {
262+
// throw new \InvalidArgumentException("invalid value for $firstName when calling Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact., must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$/.");
263+
// }
264264
$this->container['firstName'] = $firstName;
265265

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

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

314314
return $this;

0 commit comments

Comments
 (0)