[
  {
    "field": "id",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "ID is a required attribute"
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of an ID is 127 characters",
        "length": 127
      }
    ]
  },
  {
    "field": "item_group_id",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of an item group ID is 127 characters",
        "length": 127
      }
    ]
  },
  {
    "field": "title",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Title is a required attribute"
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of a title is 500 characters",
        "length": 500
      }
    ]
  },
  {
    "field": "description",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Description is a required attribute"
      },
      {
        "type": "without_html",
        "severity": "warning",
        "message": "Description should not contain HTML tags"
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of a description is 10 000 characters",
        "length": 10000
      }
    ]
  },
  {
    "field": "link",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Link is a required attribute"
      },
      {
        "type": "start_with",
        "severity": "error",
        "message": "A link should start with http or https",
        "values": [
          "https://",
          "http://"
        ]
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of a link is 511 characters",
        "length": 511
      }
    ]
  },
  {
    "field": "image_link",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Image link is a required attribute"
      },
      {
        "type": "start_with",
        "severity": "error",
        "message": "An image link should start with http or https",
        "values": [
          "https://",
          "http://"
        ]
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of an image link is 2000 characters",
        "length": 2000
      }
    ]
  },
  {
    "field": "price",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Price is a required attribute"
      }
    ]
  },
  {
    "field": "availability",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Availability is a required attribute"
      },
      {
        "type": "is_one_of",
        "severity": "error",
        "message": "The availability attribute supports only next values: 'in_stock', 'out_of_stock', 'preorder'",
        "values": [
          "in stock",
          "out of stock",
          "preorder"
        ]
      }
    ]
  },
  {
    "field": "condition",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The condition attribute supports only next values: 'new', 'refurbished', 'used'",
        "values": [
          "new",
          "refurbished",
          "used"
        ]
      }
    ]
  },
  {
    "field": "product_type",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a product type is 1000 characters",
        "length": 1000
      }
    ]
  },
  {
    "field": "additional_image_link",
    "rules": [
      {
        "type": "start_with",
        "severity": "notice",
        "message": "An additional image link should start with http or https",
        "values": [
          "https://",
          "http://"
        ]
      },
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of an additional image link is 2000 characters",
        "length": 2000
      }
    ]
  },
  {
    "field": "brand",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a brand is 100 characters",
        "length": 100
      }
    ]
  },
  {
    "field": "gender",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The gender attribute supports only next values: 'male', 'female', 'unisex'",
        "values": [
          "male",
          "female",
          "unisex"
        ]
      }
    ]
  },
  {
    "field": "age_group",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The age group attribute supports only next values: 'newborn', 'infant', 'toddler', 'kids', 'adult'",
        "values": [
          "newborn",
          "infant",
          "toddler",
          "kids",
          "adult"
        ]
      }
    ]
  },
  {
    "field": "color",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a color is 30 characters",
        "length": 30
      }
    ]
  },
  {
    "field": "size",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a size is 30 characters",
        "length": 30
      }
    ]
  }
]
