Skip to content

Commit 5439b17

Browse files
feat(airbyte-cdk): update datamodel_code_generator to 0.26.3 (#31)
Signed-off-by: Artem Inzhyyants <[email protected]> Co-authored-by: Aaron ("AJ") Steers <[email protected]>
1 parent 707faac commit 5439b17

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

airbyte_cdk/sources/declarative/models/declarative_component_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
from __future__ import annotations
55

66
from enum import Enum
7-
from typing import Any, Dict, List, Optional, Union
7+
from typing import Any, Dict, List, Literal, Optional, Union
88

99
from pydantic.v1 import BaseModel, Extra, Field
10-
from typing_extensions import Literal
1110

1211

1312
class AuthFlowType(Enum):
@@ -632,6 +631,7 @@ class HttpResponseFilter(BaseModel):
632631
description="Match the response if its HTTP code is included in this list.",
633632
examples=[[420, 429], [500]],
634633
title="HTTP Codes",
634+
unique_items=True,
635635
)
636636
predicate: Optional[str] = Field(
637637
None,

bin/generate_component_manifest_files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
PIP_DEPENDENCIES = [
16-
"datamodel_code_generator==0.11.19",
16+
"datamodel_code_generator==0.26.3",
1717
]
1818

1919

@@ -73,6 +73,8 @@ async def main():
7373
"--enum-field-as-literal",
7474
"one",
7575
"--set-default-enum-member",
76+
"--use-double-quotes",
77+
"--remove-special-field-name-prefix",
7678
],
7779
use_entrypoint=True,
7880
)

0 commit comments

Comments
 (0)