Header 对象
Header 对象除了以下改动之外与 Parameter 对象 一致:
name不能被指定,它在相应的headers映射中被指定。in不能被指定,它隐含在header中。- 所有被 location 影响的特性必须适合
header中的一个 location,(比如style)。
Header 对象示例
一个类型为 integer 的简单 header:
{
"description": "The number of allowed requests in the current period",
"schema": {
"type": "integer"
}
}
description: The number of allowed requests in the current period
schema:
type: integer