Skip to content

Commit 081e7a8

Browse files
author
Oleksandr Bazarnov
committed
deduplicate most frequent tags, use existing refs if definitions.shared.<tag> is already provided
1 parent 691d16a commit 081e7a8

File tree

6 files changed

+750
-214
lines changed

6 files changed

+750
-214
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ definitions:
15831583
title: URL Base
15841584
description: The base URL (scheme and host, e.g. "https://api.example.com") to match.
15851585
type: string
1586+
sharable: True
15861587
url_path_pattern:
15871588
title: URL Path Pattern
15881589
description: A regular expression pattern to match the URL path.
@@ -1841,6 +1842,7 @@ definitions:
18411842
- "{{ config['base_url'] or 'https://app.posthog.com'}}/api"
18421843
- "https://connect.squareup.com/v2/quotes/{{ stream_partition['id'] }}/quote_line_groups"
18431844
- "https://example.com/api/v1/resource/{{ next_page_token['id'] }}"
1845+
sharable: True
18441846
path:
18451847
title: URL Path
18461848
description: Path the specific API endpoint that this stream represents. Do not put sensitive information (e.g. API tokens) into this field - Use the Authentication component for this.
@@ -1872,6 +1874,7 @@ definitions:
18721874
- "$ref": "#/definitions/SessionTokenAuthenticator"
18731875
- "$ref": "#/definitions/LegacySessionTokenAuthenticator"
18741876
- "$ref": "#/definitions/SelectiveAuthenticator"
1877+
sharable: True
18751878
error_handler:
18761879
title: Error Handler
18771880
description: Error handler component that defines how to handle errors.

airbyte_cdk/sources/declarative/parsers/custom_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ class ManifestDeduplicationException(Exception):
2626
Raised when a circular reference is detected in a manifest.
2727
"""
2828

29-
def __init__(self, exception: str) -> None:
30-
super().__init__(f"Failed to deduplicate manifest: {exception}")
29+
def __init__(self, message: str) -> None:
30+
super().__init__(f"Failed to deduplicate manifest: {message}")

0 commit comments

Comments
 (0)