DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

Enhance the payload validation for user facing apis #180

Closed ChrisRousey closed 1 year ago

ChrisRousey commented 1 year ago

As of now, when a user sends an api request containing a payload for the given reosurce (stream, dpeloyment, config, pipeline), we have some validating in place for fields like stream->partitions, replication factor, but for others we have very little validation like deployment->partitions.

We sould increase the robustness of the api by adding validations for resource fields.

This issue entails:

HknLof commented 1 year ago

Thanks for the issue!

Do you think better validation of input via Jackson Annotations https://github.com/FasterXML/jackson-annotations could help?

Or are we lacking semantic validation?

Do you have examples?