Skip to content

Commit c5e9a8a

Browse files
authored
Merge pull request #1914 from eemeli/fix-example-yaml
Fix broken YAML in examples/v3.0/api-with-examples.yaml
2 parents e42b090 + 4a8bae9 commit c5e9a8a

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

examples/v3.0/api-with-examples.yaml

+27-24
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ paths:
1515
application/json:
1616
examples:
1717
foo:
18-
value: {
19-
"versions": [
18+
value:
19+
{
20+
"versions": [
2021
{
2122
"status": "CURRENT",
2223
"updated": "2011-01-21T11:33:21Z",
@@ -39,8 +40,8 @@ paths:
3940
}
4041
]
4142
}
42-
]
43-
}
43+
]
44+
}
4445
'300':
4546
description: |-
4647
300 response
@@ -87,11 +88,12 @@ paths:
8788
application/json:
8889
examples:
8990
foo:
90-
value: {
91-
"version": {
92-
"status": "CURRENT",
93-
"updated": "2011-01-21T11:33:21Z",
94-
"media-types": [
91+
value:
92+
{
93+
"version": {
94+
"status": "CURRENT",
95+
"updated": "2011-01-21T11:33:21Z",
96+
"media-types": [
9597
{
9698
"base": "application/xml",
9799
"type": "application/vnd.openstack.compute+xml;version=2"
@@ -100,9 +102,9 @@ paths:
100102
"base": "application/json",
101103
"type": "application/vnd.openstack.compute+json;version=2"
102104
}
103-
],
104-
"id": "v2.0",
105-
"links": [
105+
],
106+
"id": "v2.0",
107+
"links": [
106108
{
107109
"href": "http://127.0.0.1:8774/v2/",
108110
"rel": "self"
@@ -122,21 +124,22 @@ paths:
122124
"type": "application/vnd.sun.wadl+xml",
123125
"rel": "describedby"
124126
}
125-
]
127+
]
128+
}
126129
}
127-
}
128130
'203':
129131
description: |-
130132
203 response
131133
content:
132134
application/json:
133135
examples:
134136
foo:
135-
value: {
136-
"version": {
137-
"status": "CURRENT",
138-
"updated": "2011-01-21T11:33:21Z",
139-
"media-types": [
137+
value:
138+
{
139+
"version": {
140+
"status": "CURRENT",
141+
"updated": "2011-01-21T11:33:21Z",
142+
"media-types": [
140143
{
141144
"base": "application/xml",
142145
"type": "application/vnd.openstack.compute+xml;version=2"
@@ -145,9 +148,9 @@ paths:
145148
"base": "application/json",
146149
"type": "application/vnd.openstack.compute+json;version=2"
147150
}
148-
],
149-
"id": "v2.0",
150-
"links": [
151+
],
152+
"id": "v2.0",
153+
"links": [
151154
{
152155
"href": "http://23.253.228.211:8774/v2/",
153156
"rel": "self"
@@ -162,6 +165,6 @@ paths:
162165
"type": "application/vnd.sun.wadl+xml",
163166
"rel": "describedby"
164167
}
165-
]
168+
]
169+
}
166170
}
167-
}

0 commit comments

Comments
 (0)