{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qrflow-codes/json-schema/qrflow-codes-set-product-link-schema.json",
  "title": "SetProductLink",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qrflow-codes-openapi.yml#/components/schemas/SetProductLink",
  "type": "object",
  "required": [
    "link_type",
    "url",
    "title"
  ],
  "properties": {
    "link_type": {
      "type": "string",
      "enum": [
        "gs1:pip",
        "gs1:instructions",
        "gs1:recipeInfo",
        "gs1:allergenInfo",
        "gs1:nutritionalInfo",
        "gs1:safetyInfo",
        "gs1:productSustainabilityInfo",
        "gs1:recallStatus",
        "gs1:hasRetailers",
        "gs1:promotion",
        "gs1:review",
        "gs1:support"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "is_default": {
      "type": "boolean",
      "description": "What a phone camera opens"
    },
    "batch": {
      "type": "string",
      "maxLength": 20,
      "description": "Scope this link to one lot"
    }
  }
}