查看原始 JSON
{
"type": "object",
"required": [],
"properties": {
"queryParams": {
"type": "object",
"properties": {
"sort": {
"enum": [
"BEST",
"HOT",
"NEW",
"TOP",
"CONTROVERSIAL",
"RISING"
],
"type": "string",
"title": "Sort",
"default": "BEST",
"examples": [
"BEST"
],
"description": "排序方式:HOT、NEW、TOP、BEST、CONTROVERSIAL 或 RISING。"
},
"after": {
"type": "string",
"title": "After",
"examples": [
"dDNfMW9qNXgyYg=="
],
"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)。"
},
"need_format": {
"type": "boolean",
"title": "Need Format",
"default": false,
"description": "是否清洗并格式化返回数据。"
},
"filter_posts": {
"type": "array",
"items": {
"type": "string",
"pattern": "^t3_[a-z0-9]+$",
"maxLength": 20,
"minLength": 4
},
"title": "Filter Posts",
"default": [],
"examples": [
"t3_1ojjquz",
"t3_1ohepm2",
"t3_1ojxzzz",
"t3_1ojnvca",
"t3_1oj9dcb",
"t3_1ojxubp",
"t3_1oj5x2b"
],
"maxItems": 100,
"description": "需要从结果中排除的帖子 ID。"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}