ffv2_validate_feature_flags

Validate feature flags

read-onlyidempotentopen-world

Validate feature flags against the FFv2 JSON schema and check flag definitions in the database. Returns validation results and the schema for each flag. Use schemaOnly to skip JSON schema validation and only look up flag definitions.

Parameters

NameTypeRequiredDescription
featureFlags object yes Feature flag configuration to validate (e.g. { "myNamespace": { "myFlag": true } })
schemaOnly boolean no If true, only look up flag schemas from the database without running JSON schema validation. Defaults to false.
Raw input JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "featureFlags": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "Feature flag configuration to validate (e.g. { \"myNamespace\": { \"myFlag\": true } })"
    },
    "schemaOnly": {
      "description": "If true, only look up flag schemas from the database without running JSON schema validation. Defaults to false.",
      "type": "boolean"
    }
  },
  "required": [
    "featureFlags"
  ]
}