Skip to content

Commit

Permalink
fix: Update schemas (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 19, 2023
1 parent 6459884 commit 29c6746
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 23 additions & 2 deletions tap_hookdeck/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@
),
th.Property(
"http_method",
th.StringType(allowed_values=["GET", "POST", "PUT", "PATCH", "DELETE"]),
th.StringType(
allowed_values=[
None, # type: ignore[list-item]
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
]
),
),
th.Property("auth_method", th.ObjectType()),
th.Property("archived_at", th.DateTimeType),
Expand All @@ -40,7 +49,18 @@
th.Property("verification", th.ObjectType()),
th.Property(
"allowed_http_methods",
th.ArrayType(th.StringType(allowed_values=["GET", "POST", "PUT", "PATCH", "DELETE"])),
th.ArrayType(
th.StringType(
allowed_values=[
None, # type: ignore[list-item]
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
]
)
),
),
th.Property(
"custom_response",
Expand Down Expand Up @@ -225,6 +245,7 @@ class Requests(HookdeckStream):
"rejection_cause",
th.StringType(
allowed_values=[
None, # type: ignore[list-item]
"SOURCE_ARCHIVED",
"NO_WEBHOOK",
"VERIFICATION_FAILED",
Expand Down
4 changes: 0 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
suite_config=SuiteConfig(
max_records_limit=10,
ignore_no_records_for_streams=[
"connections",
"destinations",
"sources",
"transformations",
"requests",
],
),
)

0 comments on commit 29c6746

Please sign in to comment.