[
  {
    "field": "rss/channel/item/g: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 50 characters",
        "length": 50
      },
      {
        "type": "unicode",
        "severity": "warning",
        "message": "Only valid unicode characters are allowed for IDs"
      }
    ]
  },
  {
    "field": "rss/channel/item/g:item_group_id",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of an item group ID is 50 characters",
        "length": 50
      },
      {
        "type": "unicode",
        "severity": "notice",
        "message": "Only valid unicode characters are allowed for item group IDs"
      }
    ]
  },
  {
    "field": "rss/channel/item/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 150 characters",
        "length": 150
      }
    ]
  },
  {
    "field": "rss/channel/item/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://"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:price",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Price is a required attribute"
      }
    ]
  },
  {
    "field": "rss/channel/item/description",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Description is a required attribute"
      }
    ]
  },
  {
    "field": "rss/channel/item/g:product_type",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a product type is 750 characters",
        "length": 750
      },
      {
        "type": "ascii",
        "severity": "notice",
        "message": "Only alphanumeric characters are allowed for product types"
      }
    ]
  },
  {
    "field": "rss/channel/item/g: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://"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:additional_image_link",
    "rules": [
      {
        "type": "start_with",
        "severity": "notice",
        "message": "An additional image link should start with http or https",
        "values": [
          "https://",
          "http://"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:condition",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The condition attribute supports only next values: 'new', 'refurbished', 'used'",
        "values": [
          "new",
          "refurbished",
          "used"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g: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",
          "in_stock",
          "out_of_stock",
          "out of stock",
          "preorder",
          "backorder"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:brand",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a brand is 70 characters",
        "length": 70
      }
    ]
  },
  {
    "field": "rss/channel/item/weight",
    "rules": [
      {
        "type": "end_with",
        "severity": "improvement",
        "message": "The weight should end with one of next units: 'lb', 'oz', 'g', 'kg'",
        "values": [
          "lb",
          "oz",
          "g",
          "kg"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:shipping_weight",
    "rules": [
      {
        "type": "end_with",
        "severity": "notice",
        "message": "The weight should end with one of next units: 'lb', 'oz', 'g', 'kg'",
        "values": [
          "lb",
          "oz",
          "g",
          "kg"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g:gender",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The gender attribute supports only next values: 'male', 'female', 'unisex'",
        "values": [
          "male",
          "female",
          "unisex"
        ]
      }
    ]
  },
  {
    "field": "rss/channel/item/g: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": "rss/channel/item/g:mpn",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a MPN is 70 characters",
        "length": 70
      },
      {
        "type": "unicode",
        "severity": "notice",
        "message": "Only valid unicode characters are allowed for MPNs"
      },
      {
        "type": "ascii",
        "severity": "improvement",
        "message": "Recommended to use only ASCII characters for MPNs"
      }
    ]
  },
  {
    "field": "rss/channel/item/g: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": "rss/channel/item/g:size",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a size is 100 characters",
        "length": 100
      }
    ]
  },
  {
    "field": "rss/channel/item/g:color",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a color is 100 characters",
        "length": 100
      },
      {
        "type": "alphanumeric",
        "severity": "notice",
        "message": "Only alphanumeric characters are allowed for colors"
      }
    ]
  },
  {
    "field": "rss/channel/item/g:identifier_exists",
    "rules": [
      {
        "type": "is_one_of",
        "severity": "notice",
        "message": "The identifier_exists attribute supports only next values: 'yes', 'no'",
        "values": [
          "yes",
          "no"
        ]
      }
    ]
  }
]
