diff --git a/airbyte-cdk/python/airbyte_cdk/sources/file_based/config/file_based_stream_config.py b/airbyte-cdk/python/airbyte_cdk/sources/file_based/config/file_based_stream_config.py index dedd2df27f33..92b808926b09 100644 --- a/airbyte-cdk/python/airbyte_cdk/sources/file_based/config/file_based_stream_config.py +++ b/airbyte-cdk/python/airbyte_cdk/sources/file_based/config/file_based_stream_config.py @@ -26,8 +26,10 @@ class ValidationPolicy(Enum): class FileBasedStreamConfig(BaseModel): name: str = Field(title="Name", description="The name of the stream.") globs: Optional[List[str]] = Field( + default=["**"], title="Globs", description='The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here.', + order=1, ) legacy_prefix: Optional[str] = Field( title="Legacy Prefix", diff --git a/airbyte-cdk/python/unit_tests/sources/file_based/scenarios/csv_scenarios.py b/airbyte-cdk/python/unit_tests/sources/file_based/scenarios/csv_scenarios.py index d3445062d027..2ca4be8d103a 100644 --- a/airbyte-cdk/python/unit_tests/sources/file_based/scenarios/csv_scenarios.py +++ b/airbyte-cdk/python/unit_tests/sources/file_based/scenarios/csv_scenarios.py @@ -76,6 +76,8 @@ "description": 'The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here.', "type": "array", "items": {"type": "string"}, + "order": 1, + "default": ["**"], }, "legacy_prefix": { "title": "Legacy Prefix",