Skip to content

Commit

Permalink
upgrade datamodel-code-generator which coincidentally has already fix…
Browse files Browse the repository at this point in the history
…ed this issue with generating List of Lists
  • Loading branch information
jrhizor committed Apr 3, 2021
1 parent 1738080 commit 9ede7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Config:
None,
description="Path to the field that will be used to determine if a record is new or modified since the last sync. If not provided by the source, the end user will have to specify the comparable themselves.",
)
source_defined_primary_key: Optional[List[str]] = Field(
source_defined_primary_key: Optional[List[List[str]]] = Field(
None,
description="If the source defines the primary key, paths to the fields that will be used as a primary key. If not provided by the source, the end user will have to specify the primary key themselves.",
)
Expand All @@ -150,7 +150,7 @@ class Config:
description="Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental`. Otherwise it is ignored.",
)
destination_sync_mode: DestinationSyncMode
primary_key: Optional[List[str]] = Field(
primary_key: Optional[List[List[str]]] = Field(
None,
description="Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup`. Otherwise it is ignored.",
)
Expand Down
2 changes: 1 addition & 1 deletion tools/code-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3.7-slim
RUN pip install datamodel-code-generator==0.5.39
RUN pip install datamodel-code-generator==0.10.1
ENTRYPOINT ["datamodel-codegen"]

LABEL io.airbyte.version=dev
Expand Down

0 comments on commit 9ede7f6

Please sign in to comment.