{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-badge-create-schema.json",
  "title": "BadgeCreate",
  "description": "Request schema for creating a new report badge.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-badges-api-openapi.yml#/components/schemas/BadgeCreate",
  "properties": {
    "asset_id": {
      "type": "string",
      "format": "uuid",
      "title": "Asset Id",
      "description": "Asset public ID (UUID) to scope the badge"
    },
    "label": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Label",
      "description": "Badge display label"
    },
    "tag_filters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tag Filters",
      "description": "Tag names to filter tables"
    },
    "schema_drift_enabled": {
      "type": "boolean",
      "title": "Schema Drift Enabled",
      "description": "Check for schema drift issues",
      "default": true
    },
    "freshness_enabled": {
      "type": "boolean",
      "title": "Freshness Enabled",
      "description": "Check for freshness issues",
      "default": true
    },
    "include_upstream": {
      "type": "boolean",
      "title": "Include Upstream",
      "description": "Include upstream dependency issues",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "asset_id",
    "label"
  ]
}