Skip to content

Commit

Permalink
No superfluous trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Aug 16, 2024
1 parent ca4a587 commit 1053c15
Showing 1 changed file with 59 additions and 56 deletions.
115 changes: 59 additions & 56 deletions examples/v3.0/api-with-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ paths:
operationId: listVersionsv2
summary: List API versions
responses:
'200':
"200":
description: 200 response
content:
application/json:
Expand All @@ -26,9 +26,9 @@ paths:
[
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self",
},
],
"rel": "self"
}
]
},
{
"status": "EXPERIMENTAL",
Expand All @@ -38,51 +38,54 @@ paths:
[
{
"href": "http://127.0.0.1:8774/v3/",
"rel": "self",
},
],
},
],
"rel": "self"
}
]
}
]
}
'300':
"300":
description: 300 response
content:
application/json:
examples:
foo:
value: |
value:
{
"versions": [
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"id": "v2.0",
"links": [
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self"
}
]
},
{
"status": "EXPERIMENTAL",
"updated": "2013-07-23T11:33:21Z",
"id": "v3.0",
"links": [
{
"href": "http://127.0.0.1:8774/v3/",
"rel": "self"
}
]
}
]
"versions":
[
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"id": "v2.0",
"links":
[
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self"
}
]
},
{
"status": "EXPERIMENTAL",
"updated": "2013-07-23T11:33:21Z",
"id": "v3.0",
"links":
[
{
"href": "http://127.0.0.1:8774/v3/",
"rel": "self"
}
]
}
]
}
/v2:
get:
operationId: getVersionDetailsv2
summary: Show API version details
responses:
'200':
"200":
description: 200 response
content:
application/json:
Expand All @@ -98,39 +101,39 @@ paths:
[
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2",
"type": "application/vnd.openstack.compute+xml;version=2"
},
{
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2",
},
"type": "application/vnd.openstack.compute+json;version=2"
}
],
"id": "v2.0",
"links":
[
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self",
"rel": "self"
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
"type": "application/pdf",
"rel": "describedby",
"rel": "describedby"
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
"rel": "describedby"
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
},
],
},
"rel": "describedby"
}
]
}
}
'203':
"203":
description: 203 response
content:
application/json:
Expand All @@ -146,30 +149,30 @@ paths:
[
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2",
"type": "application/vnd.openstack.compute+xml;version=2"
},
{
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2",
},
"type": "application/vnd.openstack.compute+json;version=2"
}
],
"id": "v2.0",
"links":
[
{
"href": "http://23.253.228.211:8774/v2/",
"rel": "self",
"rel": "self"
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
"type": "application/pdf",
"rel": "describedby",
"rel": "describedby"
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
},
],
},
"rel": "describedby"
}
]
}
}

0 comments on commit 1053c15

Please sign in to comment.