[
  {
    "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 128 characters",
        "length": 128
      }
    ]
  },
  {
    "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 375 characters",
        "length": 375
      }
    ]
  },
  {
    "field": "description",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Description is a required attribute"
      },
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of a description is 5000 characters",
        "length": 5000
      }
    ]
  },
  {
    "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 2000 characters",
        "length": 2000
      }
    ]
  },
  {
    "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', 'discontinued', 'available for order'",
        "values": [
          "in stock",
          "out of stock",
          "preorder",
          "discontinued",
          "available for order"
        ]
      }
    ]
  },
  {
    "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 750 characters",
        "length": 750
      }
    ]
  },
  {
    "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 70 characters",
        "length": 70
      }
    ]
  },
  {
    "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 200 characters",
        "length": 200
      }
    ]
  },
  {
    "field": "size",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a size is 100 characters",
        "length": 100
      }
    ]
  }
]
