The type safe API is one of Octopipe’s key innovations. By automating the generation of a strongly-typed API for each connector, Octopipe minimizes runtime errors and improves developer productivity. This document details how the type safe API is generated, its underlying principles, and the benefits it brings to your data pipeline.
Strong Typing:
All fields are assigned explicit types (e.g., string, integer, float, timestamp), reducing the likelihood of type mismatches during runtime.
Validation:
The API schema undergoes automated validation to ensure consistency with the data returned by the connector.
Documentation:
Generated schemas include detailed descriptions for each field, aiding in developer understanding and debugging.
Integration:
The type safe API is seamlessly integrated with the transform layer, ensuring that data is processed according to strict type definitions.