@@ -254,7 +254,7 @@ def create_source(
254254 models .SourceCreateRequest (
255255 name = name ,
256256 workspace_id = workspace_id ,
257- configuration = config , # TODO: wrap in a proper configuration object
257+ configuration = config ,
258258 definition_id = None , # Not used alternative to config.sourceType.
259259 secret_id = None , # For OAuth, not yet supported
260260 ),
@@ -337,7 +337,7 @@ def create_destination(
337337 models .DestinationCreateRequest (
338338 name = name ,
339339 workspace_id = workspace_id ,
340- configuration = config , # TODO: wrap in a proper configuration object
340+ configuration = config ,
341341 ),
342342 )
343343 if status_ok (response .status_code ) and response .destination_response :
@@ -368,6 +368,7 @@ def get_destination(
368368 if status_ok (response .status_code ):
369369 # TODO: This is a temporary workaround to resolve an issue where
370370 # the destination API response is of the wrong type.
371+ # https://github.com/airbytehq/pyairbyte/issues/320
371372 raw_response : dict [str , Any ] = json .loads (response .raw_response .text )
372373 raw_configuration : dict [str , Any ] = raw_response ["configuration" ]
373374 destination_type = raw_response .get ("destinationType" )
@@ -538,10 +539,6 @@ def delete_connection(
538539# api_key: str,
539540# workspace_id: str | None = None,
540541# ) -> api.SourceCheckResponse:
541- # """Check a source.
542-
543- # # TODO: Need to use legacy Configuration API for this:
544- # # https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#post-/v1/sources/check_connection
545- # """
542+ # """Check a source."""
546543# _ = source_id, workspace_id, api_root, api_key
547544# raise NotImplementedError
0 commit comments