kotalco / kotal

Blockchain Kubernetes Operator
https://kotal.co
Apache License 2.0
207 stars 48 forks source link

Support user friendly validation for the API sdk #16

Open mohamed-abdelrhman opened 2 years ago

mohamed-abdelrhman commented 2 years ago

When user tries to validate create or update in the API sdk it returns unformatted and not friendly error validation which used for cli

eg:

{"level":"error","time":"2022-06-22T18:52:55.742+0200","msg":"ERROR_IN_ETHEREUMSERVICE_UPDATE-FM","error":"Node.ethereum.kotal.io \"mynodes\" is invalid: spec.resources.memoryLimit: Invalid value: \"0Gi\": spec.resources.memoryLimit in body should match '^[1-9][0-9]*[KMGTPE]i$'"}