Skip to content

Commit 7554142

Browse files
committed
removed input regex due to pain in the Ass
1 parent 6ecc4a7 commit 7554142

22 files changed

+0
-165
lines changed

backend/openapi_server/models/created.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class Created(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +59,5 @@ def message(self, message: str):
6159
"""
6260
if message is not None and len(message) > 255:
6361
raise ValueError("Invalid value for `message`, length must be less than or equal to `255`") # noqa: E501
64-
if message is not None and not re.search(r'^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$', message): # noqa: E501
65-
raise ValueError(r"Invalid value for `message`, must be a follow pattern or equal to `/^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$/`") # noqa: E501
6662

6763
self._message = message

backend/openapi_server/models/groups.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class Groups(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +59,5 @@ def name(self, name: str):
6159
"""
6260
if name is not None and len(name) > 255:
6361
raise ValueError("Invalid value for `name`, length must be less than or equal to `255`") # noqa: E501
64-
if name is not None and not re.search(r'^example-[0-9a-z]', name): # noqa: E501
65-
raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^example-[0-9a-z]/`") # noqa: E501
6662

6763
self._name = name

backend/openapi_server/models/groups_response.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class GroupsResponse(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -91,7 +89,5 @@ def name(self, name: str):
9189
"""
9290
if name is not None and len(name) > 255:
9391
raise ValueError("Invalid value for `name`, length must be less than or equal to `255`") # noqa: E501
94-
if name is not None and not re.search(r'^example-[0-9a-z]', name): # noqa: E501
95-
raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^example-[0-9a-z]/`") # noqa: E501
9692

9793
self._name = name

backend/openapi_server/models/internal_server_error.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class InternalServerError(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +59,5 @@ def message(self, message: str):
6159
"""
6260
if message is not None and len(message) > 255:
6361
raise ValueError("Invalid value for `message`, length must be less than or equal to `255`") # noqa: E501
64-
if message is not None and not re.search(r'^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$', message): # noqa: E501
65-
raise ValueError(r"Invalid value for `message`, must be a follow pattern or equal to `/^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$/`") # noqa: E501
6662

6763
self._message = message

backend/openapi_server/models/invalid_request.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class InvalidRequest(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +59,5 @@ def message(self, message: str):
6159
"""
6260
if message is not None and len(message) > 255:
6361
raise ValueError("Invalid value for `message`, length must be less than or equal to `255`") # noqa: E501
64-
if message is not None and not re.search(r'^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$', message): # noqa: E501
65-
raise ValueError(r"Invalid value for `message`, must be a follow pattern or equal to `/^example-[0-9a-z]+$^example-[0-9a-z]+$^example-[0-9a-z]+$/`") # noqa: E501
6662

6763
self._message = message

backend/openapi_server/models/lights.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class Lights(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,8 +92,6 @@ def adress(self, adress: str):
9492
"""
9593
if adress is not None and len(adress) > 255:
9694
raise ValueError("Invalid value for `adress`, length must be less than or equal to `255`") # noqa: E501
97-
if adress is not None and not re.search(r'^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$', adress): # noqa: E501
98-
raise ValueError(r"Invalid value for `adress`, must be a follow pattern or equal to `/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/`") # noqa: E501
9995

10096
self._adress = adress
10197

@@ -119,7 +115,5 @@ def comment(self, comment: str):
119115
"""
120116
if comment is not None and len(comment) > 65535:
121117
raise ValueError("Invalid value for `comment`, length must be less than or equal to `65535`") # noqa: E501
122-
if comment is not None and not re.search(r'^[0-9a-z]+$', comment): # noqa: E501
123-
raise ValueError(r"Invalid value for `comment`, must be a follow pattern or equal to `/^[0-9a-z]+$/`") # noqa: E501
124118

125119
self._comment = comment

backend/openapi_server/models/lights_response.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class LightsResponse(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -129,8 +127,6 @@ def adress(self, adress: str):
129127
"""
130128
if adress is not None and len(adress) > 255:
131129
raise ValueError("Invalid value for `adress`, length must be less than or equal to `255`") # noqa: E501
132-
if adress is not None and not re.search(r'^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$', adress): # noqa: E501
133-
raise ValueError(r"Invalid value for `adress`, must be a follow pattern or equal to `/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/`") # noqa: E501
134130

135131
self._adress = adress
136132

@@ -154,8 +150,6 @@ def comment(self, comment: str):
154150
"""
155151
if comment is not None and len(comment) > 65535:
156152
raise ValueError("Invalid value for `comment`, length must be less than or equal to `65535`") # noqa: E501
157-
if comment is not None and not re.search(r'^[0-9a-z]+$', comment): # noqa: E501
158-
raise ValueError(r"Invalid value for `comment`, must be a follow pattern or equal to `/^[0-9a-z]+$/`") # noqa: E501
159153

160154
self._comment = comment
161155

backend/openapi_server/models/map.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class Map(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -101,8 +99,6 @@ def name(self, name: str):
10199
"""
102100
if name is not None and len(name) > 255:
103101
raise ValueError("Invalid value for `name`, length must be less than or equal to `255`") # noqa: E501
104-
if name is not None and not re.search(r'^example-[0-9a-z]', name): # noqa: E501
105-
raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^example-[0-9a-z]/`") # noqa: E501
106102

107103
self._name = name
108104

backend/openapi_server/models/not_found.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from typing import List, Dict # noqa: F401
44

55
from openapi_server.models.base_model import Model
6-
import re
76
from openapi_server import util
87

9-
import re # noqa: E501
108

119
class NotFound(Model):
1210
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +59,5 @@ def message(self, message: str):
6159
"""
6260
if message is not None and len(message) > 255:
6361
raise ValueError("Invalid value for `message`, length must be less than or equal to `255`") # noqa: E501
64-
if message is not None and not re.search(r'^[0-9a-zA-Z]+$', message): # noqa: E501
65-
raise ValueError(r"Invalid value for `message`, must be a follow pattern or equal to `/^[0-9a-zA-Z]+$/`") # noqa: E501
6662

6763
self._message = message

backend/openapi_server/models/orders_add.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
from openapi_server.models.base_model import Model
66
from openapi_server.models.order_products import OrderProducts
7-
import re
87
from openapi_server import util
98

109
from openapi_server.models.order_products import OrderProducts # noqa: E501
11-
import re # noqa: E501
1210

1311
class OrdersAdd(Model):
1412
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -156,8 +154,6 @@ def comment(self, comment: str):
156154
"""
157155
if comment is not None and len(comment) > 255:
158156
raise ValueError("Invalid value for `comment`, length must be less than or equal to `255`") # noqa: E501
159-
if comment is not None and not re.search(r'^.*$', comment): # noqa: E501
160-
raise ValueError(r"Invalid value for `comment`, must be a follow pattern or equal to `/^.*$/`") # noqa: E501
161157

162158
self._comment = comment
163159

0 commit comments

Comments
 (0)