diff --git a/airbyte_cdk/sources/declarative/models/declarative_component_schema.py b/airbyte_cdk/sources/declarative/models/declarative_component_schema.py index 43848eaeb..2bd7efc10 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, diff --git a/bin/generate_component_manifest_files.py b/bin/generate_component_manifest_files.py index 7e9c68351..43f9b568e 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, )