File size: 1,147 Bytes
b43d8da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | {
"$comment": "SPDX-License-Identifier: Apache-2.0. Copyright 2026 DriftCall Team. Hotel v2 after cancel_window_shrink / resort_fee_append per DESIGN.md §5.4.",
"$id": "https://driftcall.dev/schemas/hotel/v2.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"cancel_window_hours": {
"const": 6,
"type": "integer"
},
"checkin": {
"format": "date",
"type": "string"
},
"checkout": {
"format": "date",
"type": "string"
},
"city": {
"minLength": 1,
"type": "string"
},
"hotel_id": {
"minLength": 1,
"type": "string"
},
"nightly_rate": {
"minimum": 0,
"type": "integer"
},
"resort_fee_inr": {
"minimum": 0,
"type": "integer"
},
"total_with_tax": {
"minimum": 0,
"type": "integer"
}
},
"required": ["hotel_id", "city", "checkin", "checkout", "nightly_rate", "total_with_tax", "cancel_window_hours", "resort_fee_inr"],
"title": "Hotel booking (v2)",
"type": "object"
}
|