It appears that Smart docs does not render a request which is an array correctly.
It works in Spec editor for “named objects” in example.
However, in Smart Docs it does not
The test yaml is:
swagger: '2.0'
info:
description: |
Simple objects in array test
version: Two-point-Oh!
title: Simple objects in array test
paths:
/test:
post:
summary: Array with named objects
description: Array with named objects
parameters:
- in: body
name: param1
description: test param1
required: true
schema:
type: array
items:
$ref: '#/definitions/stackoverflow'
responses:
'200':
description: OK
/test2:
post:
summary: Array with simpel (nameless) objects
description: Array with simpel (nameless) objects
parameters:
- in: body
name: param1
description: test param1
required: true
schema:
$ref: '#/definitions/stackoverflow2'
responses:
'200':
description: OK
definitions:
stackoverflow:
type: object
properties:
name:
type: string
description: name of the object
stackoverflow2:
type: array
items:
$ref: '#/definitions/stackoverflow2_inner'
stackoverflow2_inner:
properties:
name:
type: string
description: name of the object

