airbyte-cdk 6.54.6__py3-none-any.whl → 6.54.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_cdk/sources/declarative/validators/dpath_validator.py +9 -3
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/RECORD +7 -7
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.54.6.dist-info → airbyte_cdk-6.54.8.dist-info}/entry_points.txt +0 -0
@@ -2,8 +2,9 @@
|
|
2
2
|
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
|
3
3
|
#
|
4
4
|
|
5
|
+
import logging
|
5
6
|
from dataclasses import dataclass
|
6
|
-
from typing import Any, List
|
7
|
+
from typing import Any, List
|
7
8
|
|
8
9
|
import dpath.util
|
9
10
|
|
@@ -11,6 +12,8 @@ from airbyte_cdk.sources.declarative.interpolation.interpolated_string import In
|
|
11
12
|
from airbyte_cdk.sources.declarative.validators.validation_strategy import ValidationStrategy
|
12
13
|
from airbyte_cdk.sources.declarative.validators.validator import Validator
|
13
14
|
|
15
|
+
logger = logging.getLogger("airbyte")
|
16
|
+
|
14
17
|
|
15
18
|
@dataclass
|
16
19
|
class DpathValidator(Validator):
|
@@ -50,10 +53,13 @@ class DpathValidator(Validator):
|
|
50
53
|
for value in values:
|
51
54
|
self.strategy.validate(value)
|
52
55
|
except KeyError as e:
|
53
|
-
|
56
|
+
logger.warning(f"Error validating path. Key not found: {e}")
|
57
|
+
return
|
58
|
+
|
54
59
|
else:
|
55
60
|
try:
|
56
61
|
value = dpath.get(input_data, path)
|
57
62
|
self.strategy.validate(value)
|
58
63
|
except KeyError as e:
|
59
|
-
|
64
|
+
logger.warning(f"Error validating path. Key not found: {e}")
|
65
|
+
return
|
@@ -237,7 +237,7 @@ airbyte_cdk/sources/declarative/transformations/remove_fields.py,sha256=EwUP0SZ2
|
|
237
237
|
airbyte_cdk/sources/declarative/transformations/transformation.py,sha256=4sXtx9cNY2EHUPq-xHvDs8GQEBUy3Eo6TkRLKHPXx68,1161
|
238
238
|
airbyte_cdk/sources/declarative/types.py,sha256=yqx0xlZv_76tkC7fqJKefmvl4GJJ8mXbeddwVV8XRJU,778
|
239
239
|
airbyte_cdk/sources/declarative/validators/__init__.py,sha256=_xccLn4QKQqR3CAwmCVOA7l6QuJd_Isoh6NsR8crM2U,663
|
240
|
-
airbyte_cdk/sources/declarative/validators/dpath_validator.py,sha256=
|
240
|
+
airbyte_cdk/sources/declarative/validators/dpath_validator.py,sha256=MEehshc7YiqUhTNm7qN6mN6JBdkQcYsoLPqAQYIE_-0,2179
|
241
241
|
airbyte_cdk/sources/declarative/validators/predicate_validator.py,sha256=Q4eVnclk1vYPvVF7XROG4MFEVkPYbYKEF8SUKs7P7-k,582
|
242
242
|
airbyte_cdk/sources/declarative/validators/validate_adheres_to_schema.py,sha256=kjcuKxWMJEzpF4GiESITGMxBAXw6YZCAsgOQMgeBo4g,1085
|
243
243
|
airbyte_cdk/sources/declarative/validators/validation_strategy.py,sha256=LwqUX89cFdHTM1-h6c8vebBA9WC38HYoGBvJfCZHr0g,467
|
@@ -420,9 +420,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
|
|
420
420
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
421
421
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
422
422
|
airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
|
423
|
-
airbyte_cdk-6.54.
|
424
|
-
airbyte_cdk-6.54.
|
425
|
-
airbyte_cdk-6.54.
|
426
|
-
airbyte_cdk-6.54.
|
427
|
-
airbyte_cdk-6.54.
|
428
|
-
airbyte_cdk-6.54.
|
423
|
+
airbyte_cdk-6.54.8.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
424
|
+
airbyte_cdk-6.54.8.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
425
|
+
airbyte_cdk-6.54.8.dist-info/METADATA,sha256=ef1aVkRMYNIJl3kf_Yk5XdSvSWfiEonycoyuEdNJygc,6343
|
426
|
+
airbyte_cdk-6.54.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
427
|
+
airbyte_cdk-6.54.8.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
428
|
+
airbyte_cdk-6.54.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|