def spec(self, logger: AirbyteLogger) -> ConnectorSpecification: """ Returns the spec for this integration. The spec is a JSON-Schema object describing the required configurations (e.g: username and password) required to run this integration. """ raw_spec = pkgutil.get_data(self.__class__.__module__.split(".")[0], "spec.json") return ConnectorSpecification.parse_obj(json.loads(raw_spec))
def spec(self, logger) -> ConnectorSpecification: raw_spec = pkgutil.get_data( self.__class__.__module__.split(".")[0], "spec.json") return ConnectorSpecification.parse_obj(json.loads(raw_spec))
def get_spec(self) -> ConnectorSpecification: raw_spec = pkgutil.get_data( self.__class__.__module__.split(".")[0], self.SPEC_FILENAME) return ConnectorSpecification.parse_obj(json.loads(raw_spec))
def connector_spec_fixture(connector_spec_path) -> ConnectorSpecification: return ConnectorSpecification.parse_file(connector_spec_path)