| { | |
| "$comment": "SPDX-License-Identifier: Apache-2.0. Copyright 2026 DriftCall Team. Airline v2 after price_rename drift per DESIGN.md §5.1.", | |
| "$id": "https://driftcall.dev/schemas/airline/v2.json", | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "additionalProperties": false, | |
| "properties": { | |
| "depart": { | |
| "format": "date-time", | |
| "type": "string" | |
| }, | |
| "flight_id": { | |
| "pattern": "^[0-9A-Z]{2}-[0-9]{4}$", | |
| "type": "string" | |
| }, | |
| "from": { | |
| "pattern": "^[A-Z]{3}$", | |
| "type": "string" | |
| }, | |
| "seats_left": { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| "to": { | |
| "pattern": "^[A-Z]{3}$", | |
| "type": "string" | |
| }, | |
| "total_fare_inr": { | |
| "minimum": 0, | |
| "type": "integer" | |
| } | |
| }, | |
| "required": ["flight_id", "from", "to", "depart", "total_fare_inr", "seats_left"], | |
| "title": "Airline search result (v2)", | |
| "type": "object" | |
| } | |