Make security policy JSON schema anoymous and add $schema
What does this MR do and why?
This MR makes two changes to the JSON schema for security orchestration policies:
- Declares the JSON Schema version Draft-07 by adding a
$schema
property. - Makes the schema anonymous by removing the
$id
property. This avoids references to this schema, as cross-references are not intended.
Because the json_schemer
library computes a fallback $id
property for anonymous schemas, this property gets stripped out when responding with the schema.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #362483 (closed)
Edited by Dominic Bauer