Please file a ticket with swagger-ui.
From: <[email protected]> on behalf of PM <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, November 16, 2017 at 17:25 To: Swagger <[email protected]> Subject: Adding a multi-item example for an array containing an object renders square brackets twice in Model components: schemas: ArrayOfUsers: type: array items: type: object properties: id: type: integer name: type: string example: - id: 10 name: Jessica Smith - id: 20 name: Ron Stewart would give [ [ {id: 1, "name": "Jessica Smith"},{id: 20, "name": "Ron Stewart"} ]] where expected is [{id: 1, "name": "Jessica Smith"},{id: 20, "name": "Ron Stewart"}] That additional square bracket is the bug. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
