Skip to content

fix(source-declarative-manifest): fix models #45088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data:
connectorType: source
definitionId: 64a2f99c-542f-4af8-9a6f-355f1217b436
# This version should not be updated manually - it is updated by the CDK release workflow.
dockerImageTag: 5.0.0
dockerImageTag: 5.0.1
dockerRepository: airbyte/source-declarative-manifest
# This page is hidden from the docs for now, since the connector is not in any Airbyte registries.
documentationUrl: https://docs.airbyte.com/integrations/sources/low-code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "5.0.0"
version = "5.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think 5.0.0 has been released so we should be good to keep the same version number

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit: it's been released on pypi, but not docker :/

name = "source-declarative-manifest"
description = "Base source implementation for low-code sources."
authors = ["Airbyte <[email protected]>"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
from __future__ import annotations

import json
import os
import pkgutil
import sys
from pathlib import Path
from typing import List

from airbyte_cdk.connector import BaseConnector
from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch
from airbyte_cdk.models import AirbyteMessage, ConnectorSpecification, Type
from airbyte_cdk.models import AirbyteMessage, ConnectorSpecificationSerializer, Type
from airbyte_cdk.sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
from airbyte_cdk.sources.declarative.yaml_declarative_source import YamlDeclarativeSource

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

message = AirbyteMessage(type=Type.SPEC, spec=spec)
print(AirbyteEntrypoint.airbyte_message_to_string(message))
Expand Down
Loading