description: Validation rules for MEL to Constraints Info dataset
version: 1.0.0
rules:
  ata_chapter:
    pattern:
      regex: "^[0-9]{1,2}$"
    non_empty_string: null
  ata_subchapter:
    pattern:
      regex: "^[0-9]{1,2}$"
    non_empty_string: null
  ata_section:
    pattern:
      regex: "^[0-9]{1,2}$"
    non_empty_string: null
  ata_item:
    non_empty_string: null
  ac_owner:
    max_length:
      threshold: 3
    non_empty_string: null
  ac_subtype:
    max_length:
      threshold: 10
    non_empty_string: null
  constraint_code:
    non_empty_string: null
  constraint_description:
    max_length:
      threshold: 500
  constraint_type:
    max_length:
      threshold: 50
  severity:
    only_allow:
      allowed_values:
        - "CRITICAL"
        - "HIGH"
        - "MEDIUM"
        - "LOW"
  record_id:
    greater_than_or_equal_to:
      threshold: 0

