space-cloud
space-cloud copied to clipboard
Ability to perform schema validation for config CRUD APIs
Challenge
- No way to do a schema check for configs being written when using non K8s config adapters.
Solution
- Add a json schema / openapi validation step for the apply config endpoint.
- We can use the JSON schema reflection library to figure out the schema of a source when it registers itself with the
Source Manager. Source Managercan store the json schema generated in a global map against the gvr- Handler for config apply endpoint can fetch this jsonschema from the
Source ManagerApp before passing the data to theConfigManager