查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"origin",
"dest",
"adult",
"child",
"infant",
"dptDate",
"fareClass",
"locale",
"currency"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"dest": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "目的机场代码。类型: 字符串"
},
"adult": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "成人数。类型: 整数; 最小值: 1; 最大值: 9007199254740991"
},
"child": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "儿童数。类型: 整数; 最小值: 0; 最大值: 9007199254740991"
},
"infant": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "婴儿数。类型: 整数; 最小值: 0; 最大值: 9007199254740991"
},
"locale": {
"type": "string",
"minLength": 2,
"description": "内容语言地区。类型: 字符串; 最短长度: 2"
},
"origin": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "出发机场或城市代码。类型: 字符串"
},
"dptDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "出发日期。类型: 字符串"
},
"currency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "请求币种。类型: 字符串; 最短长度: 3; 最长长度: 3"
},
"fareClass": {
"enum": [
"economy",
"business"
],
"type": "string",
"description": "舱位。类型: 字符串; 允许值: [\"economy\",\"business\"]"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}