[
  {
    "field": "category",
    "rules": [
      {
        "type": "required",
        "severity": "error",
        "message": "Category is a required attribute"
      }
    ]
  },
  {
    "field": "mpn",
    "rules": [
      {
        "type": "max_length",
        "severity": "notice",
        "message": "The maximum length of a MPN is 256 characters",
        "length": 256
      }
    ]
  },
  {
    "field": "ean",
    "rules": [
      {
        "type": "max_length",
        "severity": "warning",
        "message": "The maximum length of a EAN is 16 characters",
        "length": 16
      },
      {
        "type": "ascii",
        "severity": "warning",
        "message": "Only ASCII characters are allowed for EANs"
      }
    ]
  },
  {
    "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 512 characters",
        "length": 512
      }
    ]
  }
]
