查看原始 JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"required": [
"username"
],
"properties": {
"sort": {
"enum": [
"NEW",
"TOP",
"HOT",
"CONTROVERSIAL"
],
"type": "string",
"title": "Sort",
"default": "NEW",
"examples": [
"NEW"
],
"description": "排序方式,可选 NEW、TOP、HOT、CONTROVERSIAL。"
},
"after": {
"type": "string",
"title": "After",
"maxLength": 4096,
"description": "分页参数。"
},
"language": {
"type": "string",
"title": "Language",
"default": "en-US",
"pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
"maxLength": 16,
"minLength": 2,
"description": "返回内容的首选语言,使用 IETF 语言标签;默认为 en-US。"
},
"username": {
"type": "string",
"title": "Username",
"pattern": "^[A-Za-z0-9_-]+$",
"examples": [
"spez"
],
"maxLength": 20,
"minLength": 1,
"description": "用户名。"
},
"page_size": {
"type": "integer",
"title": "Page Size",
"default": 25,
"maximum": 100,
"minimum": 1,
"examples": [
25
],
"description": "每页返回的数量,默认 25。"
},
"need_format": {
"type": "boolean",
"title": "Need Format",
"default": false,
"description": "是否清洗并格式化返回数据。"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}