Skip to content

Commit 1339aac

Browse files
committed
Bump to 0.1.22
1 parent 3023898 commit 1339aac

18 files changed

+37
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Introducing API v1 for Mosquito Alert platform, a project desgined to facilitate
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 0.1.21
7+
- Package version: 0.1.22
88
- Generator version: 7.14.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

mosquito_alert/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "0.1.21"
18+
__version__ = "0.1.22"
1919

2020
# Define package exports
2121
__all__ = [

mosquito_alert/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/0.1.21/python'
94+
self.user_agent = 'OpenAPI-Generator/0.1.22/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

mosquito_alert/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def to_debug_report(self) -> str:
551551
"OS: {env}\n"\
552552
"Python Version: {pyversion}\n"\
553553
"Version of the API: v1\n"\
554-
"SDK Package Version: 0.1.21".\
554+
"SDK Package Version: 0.1.22".\
555555
format(env=sys.platform, pyversion=sys.version)
556556

557557
def get_host_settings(self) -> List[HostSetting]:

mosquito_alert/models/devices_create_mobile_app_package_version_error_component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def attr_validate_enum(cls, value):
4242
@field_validator('code')
4343
def code_validate_enum(cls, value):
4444
"""Validates the enum"""
45-
if value not in set(['blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46-
raise ValueError("must be one of enum values ('blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
45+
if value not in set(['blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46+
raise ValueError("must be one of enum values ('blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
4747
return value
4848

4949
model_config = ConfigDict(

mosquito_alert/models/devices_partial_update_mobile_app_package_version_error_component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def attr_validate_enum(cls, value):
4242
@field_validator('code')
4343
def code_validate_enum(cls, value):
4444
"""Validates the enum"""
45-
if value not in set(['blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46-
raise ValueError("must be one of enum values ('blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
45+
if value not in set(['blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46+
raise ValueError("must be one of enum values ('blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
4747
return value
4848

4949
model_config = ConfigDict(

mosquito_alert/models/devices_update_mobile_app_package_version_error_component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def attr_validate_enum(cls, value):
4242
@field_validator('code')
4343
def code_validate_enum(cls, value):
4444
"""Validates the enum"""
45-
if value not in set(['blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46-
raise ValueError("must be one of enum values ('blank', 'invalid', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
45+
if value not in set(['blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed']):
46+
raise ValueError("must be one of enum values ('blank', 'invalid', 'invalid_version', 'max_length', 'null', 'null_characters_not_allowed', 'required', 'surrogate_characters_not_allowed')")
4747
return value
4848

4949
model_config = ConfigDict(

mosquito_alert/models/mobile_app.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, Field
21+
from pydantic import BaseModel, ConfigDict, Field, field_validator
2222
from typing import Any, ClassVar, Dict, List
2323
from typing_extensions import Annotated
2424
from typing import Optional, Set
@@ -32,6 +32,13 @@ class MobileApp(BaseModel):
3232
package_version: Annotated[str, Field(strict=True, max_length=32)]
3333
__properties: ClassVar[List[str]] = ["package_name", "package_version"]
3434

35+
@field_validator('package_version')
36+
def package_version_validate_regular_expression(cls, value):
37+
"""Validates the regular expression"""
38+
if not re.match(r"^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$", value):
39+
raise ValueError(r"must validate the regular expression /^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$/")
40+
return value
41+
3542
model_config = ConfigDict(
3643
populate_by_name=True,
3744
validate_assignment=True,

mosquito_alert/models/mobile_app_request.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, Field
21+
from pydantic import BaseModel, ConfigDict, Field, field_validator
2222
from typing import Any, ClassVar, Dict, List
2323
from typing_extensions import Annotated
2424
from typing import Optional, Set
@@ -32,6 +32,13 @@ class MobileAppRequest(BaseModel):
3232
package_version: Annotated[str, Field(min_length=1, strict=True, max_length=32)]
3333
__properties: ClassVar[List[str]] = ["package_name", "package_version"]
3434

35+
@field_validator('package_version')
36+
def package_version_validate_regular_expression(cls, value):
37+
"""Validates the regular expression"""
38+
if not re.match(r"^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$", value):
39+
raise ValueError(r"must validate the regular expression /^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$/")
40+
return value
41+
3542
model_config = ConfigDict(
3643
populate_by_name=True,
3744
validate_assignment=True,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mosquito_alert"
3-
version = "0.1.21"
3+
version = "0.1.22"
44
description = "Mosquito Alert API"
55
authors = [
66
{name = "Developers",email = "[email protected]"},

0 commit comments

Comments
 (0)