Brand Studio docs
Engineering manualSchema reference

Brand Studio featured local examples

Declared schema: schemas/featured-examples.schema.json

Source: schemas/featured-examples.schema.json. This is the complete declaration, including nested definitions and constraints. Its presence is not evidence that a runtime producer or consumer validates against it.

All schemas · Data structures and lineage

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://brand.mirrorfactory.ai/schemas/featured-examples.schema.json",
  "title": "Brand Studio featured local examples",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "updated_at",
    "examples"
  ],
  "properties": {
    "schema_version": {
      "const": "brand-studio-featured-examples/v1"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "examples": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/example"
      }
    }
  },
  "$defs": {
    "example": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "status",
        "run_id",
        "package_path",
        "display",
        "evidence_state",
        "package",
        "claim_boundary",
        "evidence"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9-]*$"
        },
        "status": {
          "const": "published_local_example"
        },
        "run_id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
        },
        "package_path": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
        },
        "display": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "brand_name",
            "domain",
            "label",
            "platform_evidence_count",
            "retained_social_items",
            "source_social_records",
            "provider_spend_usd"
          ],
          "properties": {
            "brand_name": {
              "type": "string",
              "minLength": 1
            },
            "domain": {
              "type": "string",
              "minLength": 1
            },
            "label": {
              "type": "string",
              "minLength": 1
            },
            "platform_evidence_count": {
              "type": "integer",
              "minimum": 1
            },
            "retained_social_items": {
              "type": "integer",
              "minimum": 0
            },
            "source_social_records": {
              "type": "integer",
              "minimum": 0
            },
            "provider_spend_usd": {
              "type": "number",
              "minimum": 0
            }
          }
        },
        "evidence_state": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "kind",
            "captured_at_earliest",
            "captured_at_latest",
            "archive_completeness",
            "complete_archive_claimed"
          ],
          "properties": {
            "kind": {
              "const": "registered_local_example"
            },
            "captured_at_earliest": {
              "type": "string",
              "format": "date-time"
            },
            "captured_at_latest": {
              "type": "string",
              "format": "date-time"
            },
            "archive_completeness": {
              "const": "partial"
            },
            "complete_archive_claimed": {
              "const": false
            }
          }
        },
        "package": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "manifest_sha256",
            "inventory_files",
            "inventory_bytes"
          ],
          "properties": {
            "manifest_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "inventory_files": {
              "type": "integer",
              "minimum": 1
            },
            "inventory_bytes": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "claim_boundary": {
          "type": "string",
          "minLength": 40
        },
        "evidence": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    }
  }
}