Data Validation Service (Python)
This document describes the FastAPI application serving as a microservice for data validation.
Overview
This FastAPI application provides an API to validate data using Great Expectations. It's a placeholder service that demonstrates how a data validation service could be integrated into the ChainAlign ecosystem.
Key Functionalities Exposed:
- Receiving data and a set of expectations.
- Returning a validation result.
Technology Stack:
- FastAPI: For creating the web server and API endpoints.
- Great Expectations: The core library for data validation.
API Endpoints
POST /validate
Receives data and a set of expectations and returns a validation result.
Request Body:
{
"data": [],
"expectations": {}
}
Responses:
200 OK: A JSON object with the validation result.422 Unprocessable Entity: If the request body is invalid.