type: object
title: Minimum Groundtime
description: Minimum groundtime data from snapshots with filtering
version: 1.0.0
properties:
  iata_ap_code:
    description: IATA Airport Code (supports regex pattern)
    title: IATA Airport Code
    type: string
    examples:
      - "HKG"
    maxLength: 3
    coercion: coerce_to_string
    validations:
      pattern:
        regex: "^[A-Z]{3}$"
      max_length:
        threshold: 3
      non_empty_string: null
  day_of_origin:
    description: Day of origin (Date component of flight identifier) in ISO format
    title: Day of Origin
    type: string
    format: date-time
    examples:
      - "2025-09-01T00:00:00Z"
    coercion: coerce_to_datetime
    validations:
      non_empty_string: null
  minimum_groundtime:
    description: Minimum ground time in minutes
    title: Minimum Groundtime
    type: integer
    coercion: coerce_to_integer
    validations:
      greater_than_or_equal_to:
        threshold: 0
  aircraft_type:
    description: Aircraft type code
    title: Aircraft Type
    type: string
    maxLength: 10
    coercion: coerce_to_nullable_string
  flight_carrier:
    description: Flight carrier code
    title: Flight Carrier
    type: string
    maxLength: 3
    coercion: coerce_to_nullable_string
  flight_number:
    description: Flight number
    title: Flight Number
    type: integer
    coercion: coerce_to_nullable_integer
  effective_date:
    description: Date when the minimum groundtime becomes effective
    title: Effective Date
    type: string
    format: date-time
    coercion: coerce_to_datetime
  expiry_date:
    description: Date when the minimum groundtime expires
    title: Expiry Date
    type: string
    format: date-time
    coercion: coerce_to_nullable_datetime
  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:
  - iata_ap_code
  - day_of_origin
  - minimum_groundtime
  - effective_date
  - record_id

