1
0
mirror of synced 2026-01-01 18:02:53 -05:00
Files
airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/schema/schema_loader.py
Brian Lai ca80d3782a [low code connectors] perform schema validation of the input config against the declarative language schema (#15543)
* draft: first pass at complete schema language generation and factory validator

* actually a working validator and fixes to the schema that went uncaught

* remove extra spike file

* fix formatting file

* pr feedback and a little bit of refactoring

* fix some types that were erroneously marked as invalid schema

* some comments

* add jsonschemamixin to interfaces

* update changelog

* bump version
2022-08-18 15:29:26 -04:00

20 lines
448 B
Python

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
from abc import abstractmethod
from dataclasses import dataclass
from typing import Any, Mapping
from dataclasses_jsonschema import JsonSchemaMixin
@dataclass
class SchemaLoader(JsonSchemaMixin):
"""Describes a stream's schema"""
@abstractmethod
def get_json_schema(self) -> Mapping[str, Any]:
"""Returns a mapping describing the stream's schema"""
pass