mirror of
https://github.com/sourcey/spectacle.git
synced 2024-09-11 13:45:23 +03:00
Merge pull request #137 from noliran/issue-98
Add support for displaying nested objects and arrays in definitions
This commit is contained in:
commit
b3bb546fd6
@ -28,6 +28,16 @@
|
||||
--}}
|
||||
</dd>
|
||||
{{/if}}
|
||||
{{#if properties}}
|
||||
<dt class="json-inner-schema">
|
||||
{{~>json-schema/body $ref="" description=""}}
|
||||
</dt>
|
||||
{{/if}}
|
||||
{{#if items}}
|
||||
<dt class="json-inner-schema">
|
||||
{{~>json-schema/body $ref="" description=""}}
|
||||
</dt>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</dl>
|
||||
</section>
|
||||
|
2061
test/fixtures/issue-98.json
vendored
Normal file
2061
test/fixtures/issue-98.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
23
test/fixtures/issue-98.yml
vendored
Normal file
23
test/fixtures/issue-98.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
swagger: '2.0'
|
||||
info:
|
||||
description: https://github.com/sourcey/spectacle/issues/98
|
||||
title: issue 98
|
||||
definitions:
|
||||
Challenges:
|
||||
type: object
|
||||
properties:
|
||||
total:
|
||||
description: Total number of challenges
|
||||
type: integer
|
||||
completed:
|
||||
description: Number of challenges completed by participant
|
||||
type: integer
|
||||
paths:
|
||||
/challenges:
|
||||
get:
|
||||
description: 'issue 98'
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/Challenges'
|
Loading…
Reference in New Issue
Block a user