Update 0.10 to 0.11
Migrate directly to version 0.11.2 of the SDK. This contains a fix for several issues in the 0.11.0 release.
This SDK release is not backwards-compatible. We are moving towards a stable Connectors release and continue to improve the experience of developing custom connectors.
In this SDK version, we changed the OutboundConnectorContext and InboundConnectorContext interfaces significantly.
You can no longer use the getVariablesAsType or getPropertiesAsType methods in outbound and inbound Connectors, respectively.
Use the new bindVariables method instead, as this takes care of secret replacement, payload validation, and deserialization automatically.
We are moving away from a mandatory @Secret annotation. From this release onwards, secrets are automatically replaced in all input variables/properties without the need to explicitly declare an annotation.
To migrate your Connector implementations, complete the following:
- If you used the
OutboundConnectorContext::getVariablesAsTypemethod in you outbound Connector functions, replace it withOutboundConnectorContext::bindVariables. - If you used the
InboundConnectorContext::getPropertiesAsTypemethod in you inbound Connector executables, replace it withInboundConnectorContext::bindProperties. - Remove calls to
OutboundConnectorContext::replaceSecretsandInboundConnectorContext::replaceSecretsmethods. The secrets are now replaced automatically. - Remove calls to
OutboundConnectorContext::validateandInboundConnectorContext::validatemethods. The validation is now performed automatically. - If you used the
@Secretannotation in your Connector implementations, you can safely remove it as it has no effect.