swagger YAML参数对象数组
我有一个REST端点,它接受和Id以及一个对象作为输入参数。我已将其记录如下:swagger YAML参数对象数组,yaml,swagger,Yaml,Swagger,我有一个REST端点,它接受和Id以及一个对象作为输入参数。我已将其记录如下: /api/examsession/end: post: tags: - Exam summary: Bla bla operationId: api_exam_end description: Bla bla parameters: - in: query name: examSectionId description: Pass the identifie
/api/examsession/end:
post:
tags:
- Exam
summary: Bla bla
operationId: api_exam_end
description: Bla bla
parameters:
- in: query
name: examSectionId
description: Pass the identifier of the current Exam Section Session provided in the ResumeExamSectionResponse
required: true
schema:
type: integer
format: int32
- in: query
name: answers
description: Pass the answer data. Only answered ones.
required: true
schema:
type: array
items:
$ref: '#/components/schemas/ExamAnswerObject'
responses:
'200':
description: Returns an object type of EndExamSectionResponse which return Exam Section information and score
content:
application/json:
schema:
$ref: '#/components/schemas/EndExamSectionResponse'
我试图在参数定义旁边看到一个名为“Schema”的链接,该参数定义将用户发送到页面上的模式定义,但如图所示,没有指向已定义对象属性的链接
这里是否有我遗漏的东西,或者“参数”部分不允许这样的定义