Skip to content

Commit d9aba9c

Browse files
fix: Use Pydantic exclude_none=True to omit null namespace fields from catalog serialization (#825)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 725e262 commit d9aba9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

airbyte/destinations/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def _write_airbyte_message_stream(
265265
with as_temp_files(
266266
files_contents=[
267267
self._hydrated_config,
268-
catalog_provider.configured_catalog.model_dump_json(),
268+
catalog_provider.configured_catalog.model_dump_json(exclude_none=True),
269269
]
270270
) as [
271271
config_file,

airbyte/sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def _read_with_catalog(
752752
with as_temp_files(
753753
[
754754
self._hydrated_config,
755-
catalog.model_dump_json(),
755+
catalog.model_dump_json(exclude_none=True),
756756
state.to_state_input_file_text() if state else "[]",
757757
]
758758
) as [

0 commit comments

Comments
 (0)