Spike: Reuse policy schema definitions for model validations
We are working on persisting policies to the database. As we store policy parts as jsonb
columns, we need JSON schemas to validate such columns. To avoid duplication of these parts, we want to break our existing policy schema into definitions which we can reuse for model validations.
The following discussion from !146504 (merged) should be addressed:
-
@mc_rocha started a discussion: question:
Is the content of these JSON validators files part of what we have in
ee/app/validators/json_schemas/security_orchestration_policy.json
?Is there a way to reuse the content if that is the case?
Would we need to keep these validators' files in sync with security_orchestration_policy.json?