Skip to content

Commit

Permalink
Merge pull request #1914 from eemeli/fix-example-yaml
Browse files Browse the repository at this point in the history
Fix broken YAML in examples/v3.0/api-with-examples.yaml
  • Loading branch information
earth2marsh authored Apr 9, 2020
2 parents e42b090 + 4a8bae9 commit c5e9a8a
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions examples/v3.0/api-with-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ paths:
application/json:
examples:
foo:
value: {
"versions": [
value:
{
"versions": [
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
Expand All @@ -39,8 +40,8 @@ paths:
}
]
}
]
}
]
}
'300':
description: |-
300 response
Expand Down Expand Up @@ -87,11 +88,12 @@ paths:
application/json:
examples:
foo:
value: {
"version": {
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types": [
value:
{
"version": {
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types": [
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2"
Expand All @@ -100,9 +102,9 @@ paths:
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2"
}
],
"id": "v2.0",
"links": [
],
"id": "v2.0",
"links": [
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self"
Expand All @@ -122,21 +124,22 @@ paths:
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby"
}
]
]
}
}
}
'203':
description: |-
203 response
content:
application/json:
examples:
foo:
value: {
"version": {
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types": [
value:
{
"version": {
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types": [
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2"
Expand All @@ -145,9 +148,9 @@ paths:
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2"
}
],
"id": "v2.0",
"links": [
],
"id": "v2.0",
"links": [
{
"href": "http://23.253.228.211:8774/v2/",
"rel": "self"
Expand All @@ -162,6 +165,6 @@ paths:
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby"
}
]
]
}
}
}

0 comments on commit c5e9a8a

Please sign in to comment.