Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #20044] generate pydantic models from handwritten schema #20475

Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6934d5f
handwritten low code manifest example components
brianjlai Dec 7, 2022
8f871ad
add MinMaxDatetime to jsonschema
brianjlai Dec 7, 2022
828614e
add a basic gradle command to generate manifest components
brianjlai Dec 7, 2022
48ba3f9
Add auth components to handwritten component schema
clnoll Dec 8, 2022
ada53df
Respect optional properties in DeclarativeOauth2Authenticator
clnoll Dec 8, 2022
329f623
Fix `Dict[str, Any]` mapping in auth components
clnoll Dec 8, 2022
c5c9346
add default error handler composite error handler and http response f…
brianjlai Dec 8, 2022
c214724
[low code component schema] adding backoff strategies to schema
maxi297 Dec 8, 2022
a91e26c
[low code component schema] fix float types
maxi297 Dec 8, 2022
6edbc29
[low code component schema] add RecordFilter
maxi297 Dec 8, 2022
ee6e142
Remove `config` from auth components
clnoll Dec 8, 2022
f52248d
[low code component schema] add Interpolation (with pending question …
maxi297 Dec 8, 2022
36b9480
Add CartesianProductStreamSlicer & DatetimeStreamSlicer
clnoll Dec 8, 2022
b735028
Add ListStreamSlicer, and fix nesting of DatetimeStreamSlicer
clnoll Dec 8, 2022
7b74a2d
[low code component schema] add InterpolatedRequestOptionsProvider
maxi297 Dec 8, 2022
f482ad1
Add slicer components, and fix a couple of components after reviewing…
clnoll Dec 8, 2022
6bf1c17
[low code component schema] adding transformations and adding type to…
maxi297 Dec 8, 2022
43f0628
adding spec and a few small tweaks
brianjlai Dec 8, 2022
11eb8d5
Add DefaultSchemaLoader
clnoll Dec 8, 2022
607bed4
[low code component schema] attempt on custom class
maxi297 Dec 8, 2022
f4f8909
Add descriptions for auth components
clnoll Dec 8, 2022
6769968
add RequestOption
brianjlai Dec 8, 2022
ac099f8
remove interpolated objects from the schema in favor of strings only
brianjlai Dec 8, 2022
37dedfe
a few schema fixes and adding some custom pagination and stream slicer
brianjlai Dec 9, 2022
414bfd6
[low code component schema] fix CustomBackoffStrategy
maxi297 Dec 9, 2022
72ae128
Add CustomRecordExtractor
clnoll Dec 9, 2022
3e34503
add some description and add additional properties
brianjlai Dec 9, 2022
fbadf8f
insert a transformer to hydrate default manifest components and perfo…
brianjlai Dec 12, 2022
9d39977
[low code component schema] validating existing schemas
maxi297 Dec 12, 2022
2408f41
[low code component schema] clean validation script
maxi297 Dec 12, 2022
00a07c0
add manifest transformer tests and a few tweaks to the schema
brianjlai Dec 13, 2022
502aeb3
Revert "[low code component schema] clean validation script"
maxi297 Dec 13, 2022
1b5e25c
Revert "[low code component schema] validating existing schemas"
maxi297 Dec 13, 2022
53f31c3
[low code component schema] integrate validation script to gradle
maxi297 Dec 13, 2022
becfd31
[low code component schema] updating validation script permissions
maxi297 Dec 13, 2022
f07a3d9
remove a few model gen spike files and clean up comments
brianjlai Dec 13, 2022
7dc0ea4
Merge branch 'master' into low_code_handwritten_component_schema
brianjlai Dec 13, 2022
f050e5b
default types should take parent type into account and a few schema c…
brianjlai Dec 14, 2022
8ff3c5e
[ISSUE #20044] generate pydantic models from handwritten schema
maxi297 Dec 14, 2022
4471266
[ISSUE #20044] code review
maxi297 Dec 15, 2022
f9467ed
Merge branch 'master' into issue-20044_generate-pydantic-models-from-…
maxi297 Dec 20, 2022
851a5fa
[ISSUE #20044] re-generating declarative component schema files
maxi297 Dec 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ repos:
rev: v0.8.8
hooks:
- id: licenseheaders
args: ["--tmpl=LICENSE_SHORT", "--ext=py", "-f"]
args:
["--tmpl=LICENSE_SHORT", "--ext=py", "-x=**/models/__init__.py", "-f"]
maxi297 marked this conversation as resolved.
Show resolved Hide resolved
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from airbyte_cdk.sources.declarative.types import Config
from dataclasses_jsonschema import JsonSchemaMixin

FALSE_VALUES: Final[List[Any]] = ["False", "false", "{}", "[]", "()", "", "0", "0.0", "False", "false", {}, False, [], (), set()]
FALSE_VALUES: Final[List[Any]] = ["False", "false", "{}", "[]", "()", "", "0", "0.0", {}, False, [], (), set()]


@dataclass
Expand Down
Loading