查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"market",
"origin",
"destination",
"outboundDate",
"tripType",
"cabinClass",
"domain",
"adults",
"children",
"locale",
"currency",
"flightCount"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"adults": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "成人数。类型: 整数; 最小值: 1; 最大值: 9007199254740991"
},
"domain": {
"type": "string",
"minLength": 2,
"description": "来源域名后缀。类型: 字符串; 最短长度: 2"
},
"locale": {
"type": "string",
"minLength": 2,
"description": "内容语言地区。类型: 字符串; 最短长度: 2"
},
"market": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "市场。类型: 字符串; 最短长度: 2; 最长长度: 2"
},
"origin": {
"type": "string",
"minLength": 3,
"description": "出发机场或城市代码。类型: 字符串; 最短长度: 3"
},
"children": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "儿童数。类型: 整数; 最小值: 0; 最大值: 9007199254740991"
},
"currency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "请求币种。类型: 字符串; 最短长度: 3; 最长长度: 3"
},
"tripType": {
"type": "string",
"minLength": 2,
"description": "来源行程类型。类型: 字符串; 最短长度: 2"
},
"cabinClass": {
"type": "string",
"minLength": 1,
"description": "舱位类型。类型: 字符串; 最短长度: 1"
},
"destination": {
"type": "string",
"minLength": 3,
"description": "目的机场或城市代码。类型: 字符串; 最短长度: 3"
},
"flightCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "请求行程数量。类型: 整数; 最小值: 1; 最大值: 9007199254740991"
},
"outboundDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "去程日期。类型: 字符串"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}