Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 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))
Esempio n. 4
0
def connector_spec_fixture(connector_spec_path) -> ConnectorSpecification:
    return ConnectorSpecification.parse_file(connector_spec_path)