[
  {
    "field": "id",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "ID is a required attribute"
      }
    ]
  },
  {
    "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 70 characters",
        "length": 70
      }
    ]
  },
  {
    "field": "description",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Description is a required attribute"
      }
    ]
  },
  {
    "field": "google_product_category",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Google product category is a required attribute"
      }
    ]
  },
  {
    "field": "item_group_id",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Item group ID is a required attribute"
      }
    ]
  },
  {
    "field": "link",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Link is a required attribute"
      }
    ]
  },
  {
    "field": "image_link",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Image link is a required attribute"
      }
    ]
  },
  {
    "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', 'backorder'",
        "values": [
          "in stock",
          "out of stock",
          "preorder",
          "backorder"
        ]
      }
    ]
  },
  {
    "field": "gtin",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a GTIN is 50 characters",
        "length": 50
      },
      {
        "type": "alphanumeric",
        "severity": "notice",
        "message": "Only numerals allowed for GTINs"
      },
      {
        "type": "numeric",
        "severity": "improvement",
        "message": "Only numerals allowed for GTINs. Recommended to exclude dashes and spaces for GTINs"
      }
    ]
  },
  {
    "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": "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 two values: 'Adult', 'Kids'",
        "values": [
          "kids",
          "adult"
        ]
      }
    ]
  }
]
