...
1swagger: '2.0'
2info:
3 title: fixture
4 description: reproduce fixture go-swagger/go-swagger#1456
5 version: "1.0.0"
6paths:
7 /v1/collection:
8 post:
9 summary: Collection
10 tags:
11 - Collection
12 parameters:
13 - name: collection
14 in: body
15 required: true
16 schema:
17 $ref: '#/definitions/collection'
18 responses:
19 200:
20 description: success
21 schema:
22 type: string
23definitions:
24 collection:
25 type: object
26 required:
27 - id
28 - title
29 - items
30 properties:
31 id:
32 type: string
33 description: The unique ID
34 title:
35 type: string
36 description: Title
37 minLength: 1
38 maxLength: 50
39 items:
40 type: array
41 description: Items
42 items:
43 type: string
44 example:
45 id: item1
46 title: Home
47 items:
48 - item2
49 - item3
View as plain text