description: Validation rules for Sector Constraints Info dataset
version: 1.0.0
rules:
  res_model_id:
    greater_than_or_equal_to:
      threshold: 0
  constraint_code:
    non_empty_string: null
  flight_carrier:
    max_length:
      threshold: 3
  flight_number:
    greater_than_or_equal_to:
      threshold: 0
  day_of_origin:
    non_empty_string: null
  match_aircraft_type:
    max_length:
      threshold: 10
  constraint_type:
    only_allow:
      allowed_values:
        - "AIRPORT_RESTRICTION"
        - "AIRCRAFT_RESTRICTION"
        - "ROUTE_RESTRICTION"
        - "TIME_RESTRICTION"
        - "OTHER"
  constraint_description:
    max_length:
      threshold: 1000
  origin_airport:
    pattern:
      regex: "^[A-Z]{3}$"
    max_length:
      threshold: 3
  destination_airport:
    pattern:
      regex: "^[A-Z]{3}$"
    max_length:
      threshold: 3
  severity:
    only_allow:
      allowed_values:
        - "CRITICAL"
        - "HIGH"
        - "MEDIUM"
        - "LOW"
  record_id:
    greater_than_or_equal_to:
      threshold: 0

