Skip to content

Commit fa6aa2b

Browse files
authored
fix(source-declarative-manifest): fix models (#45088)
Signed-off-by: Artem Inzhyyants <[email protected]>
1 parent 6eb0d36 commit fa6aa2b

File tree

1 file changed

+2
-3
lines changed
  • airbyte-integrations/connectors/source-declarative-manifest/source_declarative_manifest

1 file changed

+2
-3
lines changed

airbyte-integrations/connectors/source-declarative-manifest/source_declarative_manifest/run.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
from __future__ import annotations
55

66
import json
7-
import os
87
import pkgutil
98
import sys
109
from pathlib import Path
1110
from typing import List
1211

1312
from airbyte_cdk.connector import BaseConnector
1413
from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch
15-
from airbyte_cdk.models import AirbyteMessage, ConnectorSpecification, Type
14+
from airbyte_cdk.models import AirbyteMessage, ConnectorSpecificationSerializer, Type
1615
from airbyte_cdk.sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
1716
from airbyte_cdk.sources.declarative.yaml_declarative_source import YamlDeclarativeSource
1817

@@ -64,7 +63,7 @@ def handle_remote_manifest_command(args: List[str]) -> None:
6463
if args[0] == "spec":
6564
json_spec = pkgutil.get_data("source_declarative_manifest", "spec.json")
6665
spec_obj = json.loads(json_spec)
67-
spec = ConnectorSpecification.parse_obj(spec_obj)
66+
spec = ConnectorSpecificationSerializer.load(spec_obj)
6867

6968
message = AirbyteMessage(type=Type.SPEC, spec=spec)
7069
print(AirbyteEntrypoint.airbyte_message_to_string(message))

0 commit comments

Comments
 (0)