From b1e54863b4f5f0fdac9ce2b4c968b345862975d7 Mon Sep 17 00:00:00 2001
From: plankthom <1620679+plankthom@users.noreply.github.com>
Date: Fri, 2 Aug 2024 12:27:02 +0000
Subject: [PATCH 1/2] chore: regenerate rules sdk :repeat:
---
.github/workflows/python.yml | 4 ++--
.openapi-generator/VERSION | 2 +-
README.md | 17 ++++++++++-------
docs/PluginUpdateSpec.md | 2 +-
docs/TasksApi.md | 6 +++---
docs/TemplateRunsApi.md | 4 ++--
docs/TemplatesApi.md | 2 +-
pyproject.toml | 1 -
requirements.txt | 2 +-
.../.openapi-generator/VERSION | 2 +-
waylay-sdk-rules-types/README.md | 17 ++++++++++-------
waylay-sdk-rules-types/pyproject.toml | 7 +++----
.../waylay/services/rules/models/__init__.py | 2 +-
.../services/rules/models/plugin_update_spec.py | 4 +++-
waylay-sdk-rules/.openapi-generator/VERSION | 2 +-
waylay-sdk-rules/README.md | 17 ++++++++++-------
waylay-sdk-rules/pyproject.toml | 5 ++---
.../services/rules/api/plugs_execution_api.py | 12 ++++++------
.../waylay/services/rules/api/push_data_api.py | 2 +-
.../waylay/services/rules/api/task_nodes_api.py | 2 +-
.../src/waylay/services/rules/api/tasks_api.py | 4 ++--
.../rules/api/tasks_batch_operations_api.py | 2 +-
.../services/rules/api/template_runs_api.py | 4 ++--
.../waylay/services/rules/api/templates_api.py | 6 +++---
.../waylay/services/rules/service/__init__.py | 2 +-
25 files changed, 69 insertions(+), 61 deletions(-)
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 9f627be..cd952cf 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.10", "3.11", "3.12"]
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
@@ -133,4 +133,4 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
- packages-dir: waylay-sdk-rules-types/dist
+ packages-dir: waylay-sdk-rules-types/dist
\ No newline at end of file
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 4b49d9b..1985849 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.2.0
\ No newline at end of file
+7.7.0
diff --git a/README.md b/README.md
index a1c8cb6..4aaacec 100644
--- a/README.md
+++ b/README.md
@@ -13,13 +13,16 @@ It consists of two sub-packages that are both plugins for the waylay-sdk-core pa
This package requires Python 3.9+.
## Installation
-Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
-When the service api methods are required, waylay-sdk-rules is included in:
-- ```pip install waylay-sdk-core[rules]``` to install `waylay-sdk-core` along with only this service, or
-- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
-When the typed models are required, both waylay-sdk-rules and waylay-sdk-rules-types are included in:
-- ```pip install waylay-sdk-core[rules,rules-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
-- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.
+
+Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
+* `pip install waylay-sdk` will install `waylay-sdk-rules` together with the SDK api packages for other services.
+* `pip install waylay-sdk[types-rules]` will additionally install the types package `waylay-sdk-rules-types`.
+* `pip install waylay-sdk[types]` will install the types packages for this and all other services.
+
+Alternatively, you can install support for this _rules_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):
+
+- `pip install waylay-sdk-rules` to only install api support for _rules_.
+- `pip install waylay-sdk-rules[types]` to additionally install type support for _rules_.
## Usage
diff --git a/docs/PluginUpdateSpec.md b/docs/PluginUpdateSpec.md
index d501b2b..728cae5 100644
--- a/docs/PluginUpdateSpec.md
+++ b/docs/PluginUpdateSpec.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | Name of the plugin to update |
**from_version** | [**PluginUpdateSpecFromVersion**](PluginUpdateSpecFromVersion.md) | |
-**to_version** | **str** | |
+**to_version** | **str** | Plugin version to upgrade to |
## Example
diff --git a/docs/TasksApi.md b/docs/TasksApi.md
index 03d4927..522c8a6 100644
--- a/docs/TasksApi.md
+++ b/docs/TasksApi.md
@@ -209,7 +209,7 @@ Name | Type | API binding | Description | Notes
-------- | ----- | ------------- | ------------- | -------------
**task_id** | **str** | path parameter `"taskId"` | Unique Task identifier |
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
-**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional]
+**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional] [default bn]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
@@ -285,7 +285,7 @@ Name | Type | API binding | Description | Notes
-------- | ----- | ------------- | ------------- | -------------
**task_id** | **str** | path parameter `"taskId"` | Unique Task identifier |
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
-**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional]
+**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional] [default bn]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
@@ -371,7 +371,7 @@ Name | Type | API binding | Description | Notes
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
**query['hits']** (dict)
**query.hits** (Query) | **int** | query parameter `"hits"` | (Paging) maximal number of items returned | [optional] [default 10]
**query['startIndex']** (dict)
**query.start_index** (Query) | **int** | query parameter `"startIndex"` | (Paging) items to skip in the listing | [optional] [default 0]
-**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional]
+**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional] [default bn]
**query['name']** (dict)
**query.name** (Query) | **str** | query parameter `"name"` | | [optional]
**query['resource']** (dict)
**query.resource** (Query) | **str** | query parameter `"resource"` | | [optional]
**query['resourceType']** (dict)
**query.resource_type** (Query) | **str** | query parameter `"resourceType"` | | [optional]
diff --git a/docs/TemplateRunsApi.md b/docs/TemplateRunsApi.md
index 9821b9a..d0b667a 100644
--- a/docs/TemplateRunsApi.md
+++ b/docs/TemplateRunsApi.md
@@ -59,7 +59,7 @@ Name | Type | API binding | Description | Notes
-------- | ----- | ------------- | ------------- | -------------
**json** | [**TemplateRunWithGraphSpecification**](TemplateRunWithGraphSpecification.md) | json request body | Specification to run template through graph/BN. |
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
-**query['logLevel']** (dict)
**query.log_level** (Query) | [**RunTemplateLogLevelParameter**](.md) | query parameter `"logLevel"` | sets the log level for filtering out logs to requested log level or higher from the template run output. Value `NONE` will disable all logs. If not specified all logs will be returned. | [optional]
+**query['logLevel']** (dict)
**query.log_level** (Query) | [**RunTemplateLogLevelParameter**](.md) | query parameter `"logLevel"` | sets the log level for filtering out logs to requested log level or higher from the template run output. Value `NONE` will disable all logs. If not specified all logs will be returned. | [optional] [default DEBUG]
**query['targetNode']** (dict)
**query.target_node** (Query) | [**List[str]**](str.md) | query parameter `"targetNode"` | The sensors and actuators part of response will contain only elements related to the asked node of the graph. The returned logs also will be filtered and contain only logs related to the asked node(s). | [optional]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
@@ -140,7 +140,7 @@ Name | Type | API binding | Description | Notes
**name** | **str** | path parameter `"name"` | Unique Template identifier |
**json** | [**TemplateRunSpecification**](TemplateRunSpecification.md) | json request body | Specification to run template |
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
-**query['logLevel']** (dict)
**query.log_level** (Query) | [**RunTemplateLogLevelParameter**](.md) | query parameter `"logLevel"` | sets the log level for filtering out logs to requested log level or higher from the template run output. Value `NONE` will disable all logs. If not specified all logs will be returned. | [optional]
+**query['logLevel']** (dict)
**query.log_level** (Query) | [**RunTemplateLogLevelParameter**](.md) | query parameter `"logLevel"` | sets the log level for filtering out logs to requested log level or higher from the template run output. Value `NONE` will disable all logs. If not specified all logs will be returned. | [optional] [default DEBUG]
**query['targetNode']** (dict)
**query.target_node** (Query) | [**List[str]**](str.md) | query parameter `"targetNode"` | The sensors and actuators part of response will contain only elements related to the asked node of the graph. The returned logs also will be filtered and contain only logs related to the asked node(s). | [optional]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md
index 9ca237a..1107fb4 100644
--- a/docs/TemplatesApi.md
+++ b/docs/TemplatesApi.md
@@ -266,7 +266,7 @@ Name | Type | API binding | Description | Notes
-------- | ----- | ------------- | ------------- | -------------
**name** | **str** | path parameter `"name"` | Unique Template identifier |
**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
-**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional]
+**query['format']** (dict)
**query.format** (Query) | [**ListTasksFormatParameter**](.md) | query parameter `"format"` | Format of the graph definition | [optional] [default bn]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
diff --git a/pyproject.toml b/pyproject.toml
index efdced7..5b2aa9d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,7 +2,6 @@
include = ["pyproject.toml", "test/**/*.py"]
[tool.ruff.lint]
-ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
diff --git a/requirements.txt b/requirements.txt
index c98d1d4..85733e4 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
pydantic ~= 2.6
typing-extensions ~= 4.9
-waylay-sdk-core ~= 0.2.1
+waylay-sdk-core ~= 0.2.3
diff --git a/waylay-sdk-rules-types/.openapi-generator/VERSION b/waylay-sdk-rules-types/.openapi-generator/VERSION
index 4b49d9b..1985849 100644
--- a/waylay-sdk-rules-types/.openapi-generator/VERSION
+++ b/waylay-sdk-rules-types/.openapi-generator/VERSION
@@ -1 +1 @@
-7.2.0
\ No newline at end of file
+7.7.0
diff --git a/waylay-sdk-rules-types/README.md b/waylay-sdk-rules-types/README.md
index c5ce378..215fdb1 100644
--- a/waylay-sdk-rules-types/README.md
+++ b/waylay-sdk-rules-types/README.md
@@ -11,13 +11,16 @@ It is considered an extension of the waylay-sdk-rules package, and it consists o
This package requires Python 3.9+.
## Installation
-Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
-When the service api methods are required, waylay-sdk-rules is included in:
-- ```pip install waylay-sdk-core[rules]``` to install `waylay-sdk-core` along with only this service, or
-- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
-When the typed models are required, both waylay-sdk-rules and waylay-sdk-rules-types are included in:
-- ```pip install waylay-sdk-core[rules,rules-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
-- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.
+
+Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
+* `pip install waylay-sdk` will install `waylay-sdk-rules` together with the SDK api packages for other services.
+* `pip install waylay-sdk[types-rules]` will additionally install the types package `waylay-sdk-rules-types`.
+* `pip install waylay-sdk[types]` will install the types packages for this and all other services.
+
+Alternatively, you can install support for this _rules_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):
+
+- `pip install waylay-sdk-rules` to only install api support for _rules_.
+- `pip install waylay-sdk-rules[types]` to additionally install type support for _rules_.
## Usage
diff --git a/waylay-sdk-rules-types/pyproject.toml b/waylay-sdk-rules-types/pyproject.toml
index 02fa5c0..ccd9c7a 100644
--- a/waylay-sdk-rules-types/pyproject.toml
+++ b/waylay-sdk-rules-types/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "waylay-sdk-rules-types"
-version = "6.5.0.20240430"
+version = "6.5.0.20240802"
description = "Waylay rules engine Types "
authors = [
{ name = "Waylay", email = "info@waylay.io"}
@@ -12,8 +12,8 @@ authors = [
keywords = ["Waylay rules engine" , "Types"]
requires-python = ">= 3.9"
dependencies = [
- "waylay-sdk-core ~= 0.2.1",
- "waylay-sdk-rules == 6.5.0.20240430",
+ "waylay-sdk-core ~= 0.2.3",
+ "waylay-sdk-rules == 6.5.0.20240802",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
@@ -54,7 +54,6 @@ namespaces = true
include = ["pyproject.toml", "src/**/*.py"]
[tool.ruff.lint]
-ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
diff --git a/waylay-sdk-rules-types/src/waylay/services/rules/models/__init__.py b/waylay-sdk-rules-types/src/waylay/services/rules/models/__init__.py
index 51a6d22..f36f1af 100644
--- a/waylay-sdk-rules-types/src/waylay/services/rules/models/__init__.py
+++ b/waylay-sdk-rules-types/src/waylay/services/rules/models/__init__.py
@@ -12,7 +12,7 @@
Do not edit the class manually.
"""
-__version__ = "6.5.0.20240430"
+__version__ = "6.5.0.20240802"
# import models into model package
from .a_tasks_batch_operation_specification import ATasksBatchOperationSpecification
diff --git a/waylay-sdk-rules-types/src/waylay/services/rules/models/plugin_update_spec.py b/waylay-sdk-rules-types/src/waylay/services/rules/models/plugin_update_spec.py
index 6400ec8..38c0663 100644
--- a/waylay-sdk-rules-types/src/waylay/services/rules/models/plugin_update_spec.py
+++ b/waylay-sdk-rules-types/src/waylay/services/rules/models/plugin_update_spec.py
@@ -32,7 +32,9 @@ class PluginUpdateSpec(WaylayBaseModel):
name: StrictStr = Field(description="Name of the plugin to update")
from_version: PluginUpdateSpecFromVersion = Field(alias="fromVersion")
- to_version: Annotated[str, Field(strict=True)] = Field(alias="toVersion")
+ to_version: Annotated[str, Field(strict=True)] = Field(
+ description="Plugin version to upgrade to", alias="toVersion"
+ )
@field_validator("to_version")
@classmethod
diff --git a/waylay-sdk-rules/.openapi-generator/VERSION b/waylay-sdk-rules/.openapi-generator/VERSION
index 4b49d9b..1985849 100644
--- a/waylay-sdk-rules/.openapi-generator/VERSION
+++ b/waylay-sdk-rules/.openapi-generator/VERSION
@@ -1 +1 @@
-7.2.0
\ No newline at end of file
+7.7.0
diff --git a/waylay-sdk-rules/README.md b/waylay-sdk-rules/README.md
index 3e08cfa..32490ad 100644
--- a/waylay-sdk-rules/README.md
+++ b/waylay-sdk-rules/README.md
@@ -12,13 +12,16 @@ Note that the typed model classes for all path params, query params, body params
This package requires Python 3.9+.
## Installation
-Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
-When the service api methods are required, waylay-sdk-rules is included in:
-- ```pip install waylay-sdk-core[rules]``` to install `waylay-sdk-core` along with only this service, or
-- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
-When the typed models are required, both waylay-sdk-rules and waylay-sdk-rules-types are included in:
-- ```pip install waylay-sdk-core[rules,rules-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
-- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.
+
+Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
+* `pip install waylay-sdk` will install `waylay-sdk-rules` together with the SDK api packages for other services.
+* `pip install waylay-sdk[types-rules]` will additionally install the types package `waylay-sdk-rules-types`.
+* `pip install waylay-sdk[types]` will install the types packages for this and all other services.
+
+Alternatively, you can install support for this _rules_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):
+
+- `pip install waylay-sdk-rules` to only install api support for _rules_.
+- `pip install waylay-sdk-rules[types]` to additionally install type support for _rules_.
## Usage
diff --git a/waylay-sdk-rules/pyproject.toml b/waylay-sdk-rules/pyproject.toml
index c1cf8b6..bc3a0d1 100644
--- a/waylay-sdk-rules/pyproject.toml
+++ b/waylay-sdk-rules/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "waylay-sdk-rules"
-version = "6.5.0.20240430"
+version = "6.5.0.20240802"
description = "Waylay rules engine"
authors = [
{ name = "Waylay", email = "info@waylay.io"}
@@ -12,7 +12,7 @@ authors = [
keywords = ["Waylay rules engine"]
requires-python = ">= 3.9"
dependencies = [
- "waylay-sdk-core ~= 0.2.1",
+ "waylay-sdk-core ~= 0.2.3",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
@@ -57,7 +57,6 @@ namespaces = true
include = ["pyproject.toml", "src/**/*.py"]
[tool.ruff.lint]
-ignore-init-module-imports = true
# allow duplicate imports
ignore=["F811"]
# https://docs.astral.sh/ruff/rules
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/plugs_execution_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/plugs_execution_api.py
index 376a39f..55f32f6 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/plugs_execution_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/plugs_execution_api.py
@@ -289,7 +289,7 @@ async def execute_actuator(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
@@ -496,7 +496,7 @@ async def execute_actuator_version(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
@@ -682,7 +682,7 @@ async def execute_sensor(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
@@ -889,7 +889,7 @@ async def execute_sensor_version(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
@@ -1075,7 +1075,7 @@ async def execute_transformer(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
@@ -1282,7 +1282,7 @@ async def execute_transformer_version(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ExecutePlugsSpecification,
Field(description="Specification to execute a plug."),
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/push_data_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/push_data_api.py
index ba50811..668c147 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/push_data_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/push_data_api.py
@@ -198,7 +198,7 @@ async def push(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
StreamData, Field(description="Push (real-time) Data Specification")
]
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/task_nodes_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/task_nodes_api.py
index ef0bb6f..f78d64e 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/task_nodes_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/task_nodes_api.py
@@ -543,7 +543,7 @@ async def patch(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(NodeStateSpecification)
+ body_adapter: Any = TypeAdapter(NodeStateSpecification)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
body_args["json"] = json
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/tasks_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/tasks_api.py
index 63ce7a9..fb74cf4 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/tasks_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/tasks_api.py
@@ -263,7 +263,7 @@ async def create(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[TaskSpecification, Field(description="Task Specification")]
)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
@@ -1053,7 +1053,7 @@ async def replace(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[TaskSpecification, Field(description="Task Specification")]
)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/tasks_batch_operations_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/tasks_batch_operations_api.py
index d6f3ed3..8f6cc80 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/tasks_batch_operations_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/tasks_batch_operations_api.py
@@ -389,7 +389,7 @@ async def start(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
ATasksBatchOperationSpecification,
Field(description="Tasks Batch Operation"),
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/template_runs_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/template_runs_api.py
index 43f5b9c..99b776a 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/template_runs_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/template_runs_api.py
@@ -250,7 +250,7 @@ async def run_graph(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
TemplateRunWithGraphSpecification,
Field(
@@ -454,7 +454,7 @@ async def run(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
TemplateRunSpecification,
Field(description="Specification to run template"),
diff --git a/waylay-sdk-rules/src/waylay/services/rules/api/templates_api.py b/waylay-sdk-rules/src/waylay/services/rules/api/templates_api.py
index 43fc60e..54274cd 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/api/templates_api.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/api/templates_api.py
@@ -265,7 +265,7 @@ async def create(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[TemplateEntity, Field(description="Template Specification")]
)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
@@ -1023,7 +1023,7 @@ async def replace(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[TemplateEntity, Field(description="Template Specification")]
)
json = body_adapter.validate_python(json) # type: ignore # https://github.com/pydantic/pydantic/discussions/7094
@@ -1341,7 +1341,7 @@ async def upgrade_plugins(
## named body parameters
body_args: Dict[str, Any] = {}
if json is not None and validate_request:
- body_adapter = TypeAdapter(
+ body_adapter: Any = TypeAdapter(
Annotated[
TemplateModification,
Field(description="Plugin Update Specifications"),
diff --git a/waylay-sdk-rules/src/waylay/services/rules/service/__init__.py b/waylay-sdk-rules/src/waylay/services/rules/service/__init__.py
index 0d4e9ba..76c7e93 100644
--- a/waylay-sdk-rules/src/waylay/services/rules/service/__init__.py
+++ b/waylay-sdk-rules/src/waylay/services/rules/service/__init__.py
@@ -12,7 +12,7 @@
Do not edit the class manually.
"""
-__version__ = "6.5.0.20240430"
+__version__ = "6.5.0.20240802"
from .service import RulesService
From 767b0b0f495e36c4d6639addeef71ca347a92f13 Mon Sep 17 00:00:00 2001
From: Thomas De Smedt
Date: Fri, 2 Aug 2024 15:32:01 +0200
Subject: [PATCH 2/2] Update .github/workflows/python.yml
Co-authored-by: Simon Schoonjans
---
.github/workflows/python.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index cd952cf..766557d 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.9", "3.10", "3.11", "3.12"]
+ python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4