SwaggerUI no displaying endpoint schema

Options

Hi all,

My SwaggerUI documentation is not displaying the schema of my endpoint. However, whenever I "Try it out" it returns the right data. The could it be because the response I am returning is derived from a constructed object and not directly from the the database? Below is the swaggerUI view of the endpoint and the function stack. I would be very grateful for any help to resolve this issue.

Answers

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Options

    Hi @Alimama ,

    Thank you for reaching out and bringing this to our attention. We're looking into the issue and will get back to you with any updates. We appreciate your patience as we work through this. 🙏

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Options

    Hi @Alimama ,

    Wanted to give you an update on this. The function stack you are working with runs complex logic where the output can vary. That is why the response schema in the documentation shows up as {}. Unfortunately, because the output isn't always predictable, there's no workaround for this.