guardian icon indicating copy to clipboard operation
guardian copied to clipboard

Use JSON Schema to define block properties

Open anvabr opened this issue 1 year ago • 0 comments

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

anvabr avatar Dec 04 '23 17:12 anvabr