Forum Discussion

utkuozan's avatar
utkuozan
New Member
4 years ago
Solved

How can I define and reference an array of object as a parameter

I have a REST endpoint which accepts and Id and an object as input parameter. I have documented it as follows :     /api/exam/end: post: tags: - Exam summary: Bla bla ...
  • HKosova's avatar
    4 years ago

    utkuozan wrote:

    IS there anything I am missing here or the "parameters" part does not allow such definition?


    Your definition is correct, but Swagger UI currently does not display the schemas of object parameters. This issue is tracked here:

    https://github.com/swagger-api/swagger-ui/issues/4581