{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-report-schema.json",
  "title": "Report",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-openapi.yml#/components/schemas/Report",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "owner_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "html": {
      "type": "string",
      "description": "Rendered HTML (falls back to the original upload)."
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "team",
        "registered",
        "public",
        "domain"
      ]
    },
    "public_permission": {
      "type": "string",
      "enum": [
        "none",
        "view",
        "comment",
        "edit"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "producer_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "producer_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "producer_icon_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_recipe": {
      "type": [
        "object",
        "null"
      ]
    },
    "edit_url": {
      "type": "string"
    },
    "share_url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "owner_id",
    "title",
    "html",
    "visibility",
    "public_permission",
    "created_at",
    "updated_at",
    "edit_url",
    "share_url"
  ]
}