diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/pyproject.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/pyproject.mustache index ce0db20000..1ab024d87f 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/pyproject.mustache @@ -23,7 +23,7 @@ tornado = ">=4.2,<5" pem = ">= 19.3.0" pycryptodome = ">= 3.9.0" {{/hasHttpSignatureMethods}} -pydantic = ">= 1.10.5" +pydantic = "^1.10.5" aenum = ">=3.1.11" [tool.poetry.dev-dependencies] diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/requirements.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/requirements.mustache index b64659a0a9..e18a97e55f 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/requirements.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/requirements.mustache @@ -1,7 +1,7 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3 -pydantic >= 1.10.2 +pydantic >= 1.10.5, < 2 aenum >= 3.1.11 {{#asyncio}} aiohttp >= 3.0.0 diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/setup.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/setup.mustache index 77760324f8..902163a1e1 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/setup.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/setup.mustache @@ -29,7 +29,7 @@ REQUIRES = [ "pem>=19.3.0", "pycryptodome>=3.9.0", {{/hasHttpSignatureMethods}} - "pydantic", + "pydantic >= 1.10.5, < 2", "aenum" ] diff --git a/samples/client/echo_api/python-nextgen/pyproject.toml b/samples/client/echo_api/python-nextgen/pyproject.toml index 954dc0de05..0a22d86748 100644 --- a/samples/client/echo_api/python-nextgen/pyproject.toml +++ b/samples/client/echo_api/python-nextgen/pyproject.toml @@ -13,7 +13,7 @@ python = "^3.7" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" -pydantic = ">= 1.10.5" +pydantic = "^1.10.5" aenum = ">=3.1.11" [tool.poetry.dev-dependencies] diff --git a/samples/client/echo_api/python-nextgen/requirements.txt b/samples/client/echo_api/python-nextgen/requirements.txt index b98ff3e606..74ede174a0 100644 --- a/samples/client/echo_api/python-nextgen/requirements.txt +++ b/samples/client/echo_api/python-nextgen/requirements.txt @@ -1,5 +1,5 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3 -pydantic >= 1.10.2 +pydantic >= 1.10.5, < 2 aenum >= 3.1.11 diff --git a/samples/client/echo_api/python-nextgen/setup.py b/samples/client/echo_api/python-nextgen/setup.py index 004666ab67..3915ce5c37 100644 --- a/samples/client/echo_api/python-nextgen/setup.py +++ b/samples/client/echo_api/python-nextgen/setup.py @@ -27,7 +27,7 @@ PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3", "python-dateutil", - "pydantic", + "pydantic >= 1.10.5, < 2", "aenum" ] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-nextgen-aiohttp/pyproject.toml index 981eebf3c5..6c4548406a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/pyproject.toml @@ -16,7 +16,7 @@ python-dateutil = ">=2.8.2" aiohttp = ">= 3.8.4" pem = ">= 19.3.0" pycryptodome = ">= 3.9.0" -pydantic = ">= 1.10.5" +pydantic = "^1.10.5" aenum = ">=3.1.11" [tool.poetry.dev-dependencies] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/requirements.txt b/samples/openapi3/client/petstore/python-nextgen-aiohttp/requirements.txt index 1365d507af..8bb00c2c24 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/requirements.txt +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/requirements.txt @@ -1,6 +1,6 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3 -pydantic >= 1.10.2 +pydantic >= 1.10.5, < 2 aenum >= 3.1.11 aiohttp >= 3.0.0 diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py index 9d2c0b75b5..d584a44727 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py @@ -29,7 +29,7 @@ REQUIRES = [ "aiohttp >= 3.0.0", "pem>=19.3.0", "pycryptodome>=3.9.0", - "pydantic", + "pydantic >= 1.10.5, < 2", "aenum" ] diff --git a/samples/openapi3/client/petstore/python-nextgen/pyproject.toml b/samples/openapi3/client/petstore/python-nextgen/pyproject.toml index 82e111dd60..b31e894081 100644 --- a/samples/openapi3/client/petstore/python-nextgen/pyproject.toml +++ b/samples/openapi3/client/petstore/python-nextgen/pyproject.toml @@ -15,7 +15,7 @@ urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" pem = ">= 19.3.0" pycryptodome = ">= 3.9.0" -pydantic = ">= 1.10.5" +pydantic = "^1.10.5" aenum = ">=3.1.11" [tool.poetry.dev-dependencies] diff --git a/samples/openapi3/client/petstore/python-nextgen/requirements.txt b/samples/openapi3/client/petstore/python-nextgen/requirements.txt index b98ff3e606..74ede174a0 100755 --- a/samples/openapi3/client/petstore/python-nextgen/requirements.txt +++ b/samples/openapi3/client/petstore/python-nextgen/requirements.txt @@ -1,5 +1,5 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3 -pydantic >= 1.10.2 +pydantic >= 1.10.5, < 2 aenum >= 3.1.11 diff --git a/samples/openapi3/client/petstore/python-nextgen/setup.py b/samples/openapi3/client/petstore/python-nextgen/setup.py index e1bff332d2..10a9635393 100755 --- a/samples/openapi3/client/petstore/python-nextgen/setup.py +++ b/samples/openapi3/client/petstore/python-nextgen/setup.py @@ -28,7 +28,7 @@ REQUIRES = [ "python-dateutil", "pem>=19.3.0", "pycryptodome>=3.9.0", - "pydantic", + "pydantic >= 1.10.5, < 2", "aenum" ]