'The generated API documentation includes the input schema if it\'s an
array of objects.'

def test_inputArraySchema(self):

    app = Klein()
    @app.route('/', methods=['GET'])
    @structured(inputSchema={'$ref': '/v0/test.json#/endpoint'}, outputSchema={}, schema_store=self.INPUT_ARRAY_SCHEMAS)
    @user_documentation(u'Undocumented.', header=u'Header', section=u'section')
    def dummy_f():
        '\n                                                Developer    docs,\n                                                '
    rest = list(makeRst('/prefix', 'section', app, None, self.INPUT_ARRAY_SCHEMAS))
    self.assertListEqual(rest, [u'Header', u'------', u'', u'', '..    http:get::    /prefix/', '', '            Undocumented.', '            ', '            ..    hidden-code-block::    json', '                            :label:    +    Request    JSON    Schema', '                            :starthidden:    True', '            ', '                            {', '                                            "$schema":    "http://json-schema.org/draft-04/schema#",', '                                            "items":    {', '                                                            "properties":    {', '                                                                            "param":    {', '                                                                                            "description":    "one\\ntwo",', '                                                                                            "title":    "TITLE",', '                                                                                            "type":    "string"', '                                                                            }', '                                                            },', '                                                            "required":    [', '                                                                            "param"', '                                                            ],', '                                                            "type":    "object"', '                                            },', '                                            "type":    "array"', '                            }', '            ', '            :<jsonarr    string    param:    *(required)*    TITLE', '            ', '                        one', '                        two', '                        ', ''])
