guardian
guardian copied to clipboard
Use JSON Schema to define block properties
Problem description
Currently Policy blocks properties are described in code using decorators, which in essence are custom code blocks which describe types. This approach is error prone, non standard and the code is difficult to maintain.
Requirements
- Switch to using standard approach for definition types, such as JSON schema that is used to define API responses in Swagger.
- Implement Policy configuration validation based on the new approach
Definition of done
- Code is refactored to use new approach for all blocks
Acceptance criteria
- Policy configuration validation is more accurate using the new approach
- Code is easier to understand and maintain