{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shelfatlas-com/json-schema/shelfatlas-com-observation-result-schema.json",
  "title": "ObservationResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shelfatlas-com-observations-api-openapi.yml#/components/schemas/ObservationResult",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "moderation_status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "moderation_status": {
      "type": "string",
      "enum": [
        "approved",
        "pending_review"
      ],
      "description": "A fresh observation auto-approves when it comes from a trusted source (a partner-tier API key, or a device with enough prior approved observations); otherwise it starts pending_review. 'rejected' is a later admin-moderation outcome — this endpoint never returns it on creation."
    },
    "top_reporter": {
      "type": "object",
      "additionalProperties": true,
      "description": "Present only when the request resolves to an identified reporter (via reporter_clerk_id or the API key's own owner). Shape may grow; treat any field not documented on the docs page as optional."
    }
  }
}