{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prijsprofeet-be/json-schema/prijsprofeet-be-report-request-schema.json",
  "title": "ReportRequest",
  "description": "A data error report. Choices and prices only, no free text.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prijsprofeet-be-openapi.yml#/components/schemas/ReportRequest",
  "properties": {
    "product_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Id"
    },
    "retailer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Retailer"
    },
    "shelf_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Shelf Id"
    },
    "compared_retailer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Compared Retailer",
      "description": "The chain whose row on this product's comparison is wrong."
    },
    "field": {
      "type": "string",
      "enum": [
        "price",
        "quantity",
        "name",
        "promo_ended",
        "match"
      ],
      "title": "Field",
      "description": "What is wrong: the price, the pack size, the name, the promotion no longer runs, or the comparison shows another product."
    },
    "seen_price": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1000.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Seen Price",
      "description": "The price the reporter saw, in euro."
    },
    "seen_where": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "store",
            "webshop",
            "folder"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Seen Where"
    },
    "match_problem": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "different_product",
            "different_pack"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Match Problem"
    },
    "shown_price": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1000.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Shown Price",
      "description": "The price you showed the reporter, if you show ours."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "field"
  ]
}