type: object
title: MEL to Constraints Info
description: Mappings of MEL-Item ATA Code to constraints information
version: 1.0.0
properties:
  ata_chapter:
    description: ATA encoding chapter for the MEL-Item
    title: ATA Chapter
    type: string
    examples:
      - "21"
    coercion: coerce_to_string
    validations:
      pattern:
        regex: "^[0-9]{1,2}$"
      non_empty_string: null
  ata_subchapter:
    description: ATA encoding subchapter for the MEL-Item
    title: ATA Subchapter
    type: string
    examples:
      - "51"
    coercion: coerce_to_string
    validations:
      pattern:
        regex: "^[0-9]{1,2}$"
      non_empty_string: null
  ata_section:
    description: ATA encoding section for the MEL-Item
    title: ATA Section
    type: string
    examples:
      - "01"
    coercion: coerce_to_string
    validations:
      pattern:
        regex: "^[0-9]{1,2}$"
      non_empty_string: null
  ata_item:
    description: ATA Item code
    title: ATA Item
    type: string
    coercion: coerce_to_string
    validations:
      non_empty_string: null
  ac_owner:
    description: Aircraft Owner code
    title: AC Owner
    type: string
    examples:
      - "CX"
    maxLength: 3
    coercion: coerce_to_string
    validations:
      max_length:
        threshold: 3
      non_empty_string: null
  ac_subtype:
    description: Aircraft Subtype code
    title: AC Subtype
    type: string
    examples:
      - "32P"
    maxLength: 10
    coercion: coerce_to_string
    validations:
      max_length:
        threshold: 10
      non_empty_string: null
  constraint_code:
    description: Constraint code associated with the MEL item
    title: Constraint Code
    type: string
    coercion: coerce_to_string
    validations:
      non_empty_string: null
  constraint_description:
    description: Description of the constraint
    title: Constraint Description
    type: string
    coercion: coerce_to_string
  constraint_type:
    description: Type of constraint (e.g., operational, maintenance, regulatory)
    title: Constraint Type
    type: string
    coercion: coerce_to_string
  effective_date:
    description: Date when the constraint becomes effective
    title: Effective Date
    type: string
    format: date-time
    coercion: coerce_to_datetime
  expiry_date:
    description: Date when the constraint expires
    title: Expiry Date
    type: string
    format: date-time
    coercion: coerce_to_nullable_datetime
  severity:
    description: Severity level of the constraint
    title: Severity
    type: string
    enum:
      - "CRITICAL"
      - "HIGH"
      - "MEDIUM"
      - "LOW"
    coercion: coerce_to_string
    validations:
      only_allow:
        allowed_values:
          - "CRITICAL"
          - "HIGH"
          - "MEDIUM"
          - "LOW"
  record_id:
    description: Unique identifier for the record
    title: Record ID
    type: integer
    coercion: coerce_to_integer
    validations:
      greater_than_or_equal_to:
        threshold: 0
  last_updated:
    description: Timestamp of last update
    title: Last Updated
    type: string
    format: date-time
    coercion: coerce_to_datetime
required:
  - ata_chapter
  - ata_subchapter
  - ata_section
  - ata_item
  - ac_owner
  - ac_subtype
  - constraint_code
  - effective_date
  - record_id

