{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prijsprofeet-nl/json-schema/prijsprofeet-nl-report-status-schema.json",
  "title": "ReportStatus",
  "description": "Where a report stands. Reports on the same row and field are one item.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prijsprofeet-nl-openapi.json#/components/schemas/ReportStatus",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "confirmed",
        "resolved",
        "rejected"
      ],
      "title": "Status",
      "description": "`open`: we have not looked yet. `confirmed`: it is wrong, a fix is on its way. `resolved`: our data is right now, because we fixed it or because it had already moved on. `rejected`: we found no error."
    },
    "field": {
      "type": "string",
      "enum": [
        "price",
        "quantity",
        "name",
        "promo_ended",
        "match"
      ],
      "title": "Field"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Id",
      "description": "The stable product id."
    },
    "retailer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retailer",
      "description": "For a shelf row."
    },
    "shelf_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shelf Id",
      "description": "For a shelf row."
    },
    "compared_retailer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Compared Retailer"
    },
    "reported_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reported At",
      "description": "First report on this row, ISO 8601 in Dutch time."
    },
    "resolved_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved At",
      "description": "When it was resolved or rejected; `null` while open."
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "field"
  ]
}