설명
OpenAPI 2.0의 본문 매개변수에는 desc라는 표준 필드가 없습니다.
잠재적 영향
도구가 이 필드를 무시하거나 매개변수 정의를 거부할 수 있습니다.
해결 방법
설명은 description에, 본문 타입은 schema에 작성하세요. 사용자 정의 확장이 필요하면 이름에 x-를 붙이고 도구가 지원하는지 확인하세요.
예시
수정한 예시는 limit에서 desc를 제거하고, 레코드 수를 나타내도록 본문 타입을 문자열에서 정수로 바꿉니다.
변경 전
json
{
"name": "limit",
"in": "body",
"description": "max records to return",
"required": true,
"schema": {
"type": "string"
},
"desc": {
"type": "string"
}
}
변경 후
json
{
"name": "limit",
"in": "body",
"description": "max records to return",
"required": true,
"schema": {
"type": "integer"
}
}