{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://peptidesgrid.com/for-stores/peptidesgrid-prices.schema.json",
 "title": "PeptidesGrid price file",
 "type": "object",
 "required": [
  "format",
  "products"
 ],
 "properties": {
  "format": {
   "const": "peptidesgrid-prices/1"
  },
  "store": {
   "type": "string"
  },
  "currency": {
   "type": "string",
   "pattern": "^[A-Z]{3}$"
  },
  "products": {
   "type": "array",
   "maxItems": 2000,
   "items": {
    "type": "object",
    "required": [
     "name",
     "url",
     "mg_per_vial",
     "vials",
     "price"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "url": {
      "type": "string",
      "pattern": "^https://"
     },
     "peptide": {
      "enum": [
       "retatrutide",
       "tirzepatide",
       "semaglutide",
       "cagrilintide",
       "cagrisema",
       "mazdutide",
       "survodutide",
       "bpc-157",
       "tb-500",
       "bpc-157-tb-500",
       "ghk-cu",
       "glow",
       "klow",
       "kpv",
       "snap-8",
       "ll-37",
       "ara-290",
       "pnc-27",
       "ipamorelin",
       "cjc-1295-no-dac",
       "cjc-1295-dac",
       "cjc-1295-ipamorelin",
       "tesamorelin",
       "sermorelin",
       "hgh-frag-176-191",
       "aod-9604",
       "igf-1-lr3",
       "ghrp-6",
       "hexarelin",
       "ghrp-2",
       "mots-c",
       "nad",
       "ss-31",
       "glutathione",
       "foxo4-dri",
       "adipotide",
       "selank",
       "semax",
       "dsip",
       "vip",
       "thymosin-alpha-1",
       "thymalin",
       "melanotan-ii",
       "pt-141",
       "kisspeptin-10",
       "oxytocin",
       "melanotan-i",
       "gonadorelin",
       "epitalon",
       "pinealon",
       "testagen",
       "cartalax",
       "cardiogen",
       "prostamax"
      ]
     },
     "mg_per_vial": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 100000
     },
     "vials": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
     },
     "price": {
      "type": "number",
      "exclusiveMinimum": 0
     },
     "regular_price": {
      "type": "number",
      "exclusiveMinimum": 0
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
     },
     "in_stock": {
      "type": "boolean"
     }
    }
   }
  }
 }
}
