Replace your schema with: schema:
type: object properties: user_agents: type: array items: type: object properties: user_agent_id: type: integer x-dbtype: int x-nullable: false x-primary-key: true user_agent_string: type: string x-dbtype: varchar x-nullable: true maxLength: 255 From: <swagger-swaggersocket@googlegroups.com> on behalf of xhorntail <xhornt...@gmail.com> Reply-To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Date: Thursday, October 5, 2017 at 15:25 To: Swagger <swagger-swaggersocket@googlegroups.com> Subject: Re: I can't seem to get the model to structure the output properly.. schema: type: array items: type: object properties: user_agent_id: type: integer x-dbtype: int x-nullable: false x-primary-key: true user_agent_string: type: string x-dbtype: varchar x-nullable: true maxLength: 255 -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.