Description
The current response system, referring to serialization / deserialization, and validation mechanisms in the microservice are not standardized, leading to inconsistencies.
This issue aims to address these issues through new classes, functions or libraries.
Context
Data handling refers to responses, error responses, serialization, deserialization, validation and parsing.
Current implementation is scattered throughout the code base, lacking a centralized approach, this leads to several problems;
Inconsistent data formats: The way data is handled, serialized, and validated varies across different parts of the application, resulting in inconsistencies.
Parsing issues: The lack of standardization makes it harder for applications depending on the service to parse responses.
Expected Behavior
This issue will address the following problems:
Introduce a centralized data handling framework that provides a consistent approach to data retrieval, manipulation, and serialization.
Implement and architect a standardized response framework, to ensure that positive and failing responses are equally understandable to users, and parse-able by developers.
Define and enforce a standardized data deserialization format to ensure that data is consistently represented across the application.
Endpoints are capable of serializing input from users to models automatically.
Implement data validation mechanisms to ensure that user input meets the required specifications for each endpoint.
Use Case Examples
Developers have an easier time extending the microservice without having to redefine or extend data handling systems.
Users can reliably parse responses from the microservice, and interact with the data provided regardless of endpoint or blueprint.
Requirements
[x] Research and evaluate different data serialization.
[x] Research and evaluate validation libraries.
[x] Design and implement a centralized data handling framework.
[x] Define and enforce standardized data serialization formats for different blueprints / models.
[x] Architect comprehensive validation schema's for different blueprints.
[ ] Integrate data validation into the data handling pipeline.
[ ] Automate data validation processes using tools and libraries.
[ ] Testing and verification
[ ] Integration into deployment
Considerations
Ensure compatibility with different data sources and formats.
Verify performance of serialization and validation.
Balance performance with data integrity and security.
Handle error handling for data validation failures.
Description The current response system, referring to serialization / deserialization, and validation mechanisms in the microservice are not standardized, leading to inconsistencies. This issue aims to address these issues through new classes, functions or libraries.
Context Data handling refers to
responses
,error responses
,serialization
,deserialization
,validation
andparsing
. Current implementation is scattered throughout the code base, lacking a centralized approach, this leads to several problems;Expected Behavior This issue will address the following problems:
Use Case Examples
Requirements
Considerations
Additional Information N/A
Dependencies N/A
Related