Skip to content

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:

  1. Declares the JSON Schema version Draft-07 by adding a $schema property.
  2. 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.

Related to #362483 (closed)

Edited by Dominic Bauer

Merge request reports