From ac38d87b293b77e60a2a35a194b062875074ca6c Mon Sep 17 00:00:00 2001 From: Artem Inzhyyants Date: Tue, 12 Nov 2024 13:26:09 +0100 Subject: [PATCH 1/2] Airbyte CDK: update datamodel_code_generator to latest version use double-quotes to align with linting rules Signed-off-by: Artem Inzhyyants --- bin/generate_component_manifest_files.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/generate_component_manifest_files.py b/bin/generate_component_manifest_files.py index 7e9c6835..43f9b568 100755 --- a/bin/generate_component_manifest_files.py +++ b/bin/generate_component_manifest_files.py @@ -13,7 +13,7 @@ PIP_DEPENDENCIES = [ - "datamodel_code_generator==0.11.19", + "datamodel_code_generator==0.26.3", ] @@ -73,6 +73,8 @@ async def main(): "--enum-field-as-literal", "one", "--set-default-enum-member", + "--use-double-quotes", + "--remove-special-field-name-prefix", ], use_entrypoint=True, ) From da553e0851f8b51917cf94d4d612396c3667700c Mon Sep 17 00:00:00 2001 From: Artem Inzhyyants Date: Tue, 12 Nov 2024 13:33:28 +0100 Subject: [PATCH 2/2] Airbyte CDK: fmt Signed-off-by: Artem Inzhyyants --- .../declarative/models/declarative_component_schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte_cdk/sources/declarative/models/declarative_component_schema.py b/airbyte_cdk/sources/declarative/models/declarative_component_schema.py index 43848eae..2bd7efc1 100644 --- a/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +++ b/airbyte_cdk/sources/declarative/models/declarative_component_schema.py @@ -4,10 +4,9 @@ from __future__ import annotations from enum import Enum -from typing import Any, Dict, List, Optional, Union +from typing import Any, Dict, List, Literal, Optional, Union from pydantic.v1 import BaseModel, Extra, Field -from typing_extensions import Literal class AuthFlowType(Enum): @@ -632,6 +631,7 @@ class HttpResponseFilter(BaseModel): description="Match the response if its HTTP code is included in this list.", examples=[[420, 429], [500]], title="HTTP Codes", + unique_items=True, ) predicate: Optional[str] = Field( None,