Skip to content

Commit

Permalink
prettier --single-quote examples/*/*.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Aug 15, 2024
1 parent d22d202 commit a6bd0df
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 165 deletions.
114 changes: 57 additions & 57 deletions examples/v3.0/api-with-examples.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: "3.0.0"
openapi: '3.0.0'
info:
title: Simple API overview
version: 2.0.0
Expand All @@ -8,7 +8,7 @@ paths:
operationId: listVersionsv2
summary: List API versions
responses:
"200":
'200':
description: |-
200 response
content:
Expand All @@ -17,35 +17,35 @@ paths:
foo:
value:
{
"versions":
'versions':
[
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"id": "v2.0",
"links":
'status': 'CURRENT',
'updated': '2011-01-21T11:33:21Z',
'id': 'v2.0',
'links':
[
{
"href": "http://127.0.0.1:8774/v2/",
"rel": "self",
'href': 'http://127.0.0.1:8774/v2/',
'rel': 'self',
},
],
},
{
"status": "EXPERIMENTAL",
"updated": "2013-07-23T11:33:21Z",
"id": "v3.0",
"links":
'status': 'EXPERIMENTAL',
'updated': '2013-07-23T11:33:21Z',
'id': 'v3.0',
'links':
[
{
"href": "http://127.0.0.1:8774/v3/",
"rel": "self",
'href': 'http://127.0.0.1:8774/v3/',
'rel': 'self',
},
],
},
],
}
"300":
'300':
description: |-
300 response
content:
Expand Down Expand Up @@ -84,7 +84,7 @@ paths:
operationId: getVersionDetailsv2
summary: Show API version details
responses:
"200":
'200':
description: |-
200 response
content:
Expand All @@ -93,47 +93,47 @@ paths:
foo:
value:
{
"version":
'version':
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types":
'status': 'CURRENT',
'updated': '2011-01-21T11:33:21Z',
'media-types':
[
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2",
'base': 'application/xml',
'type': 'application/vnd.openstack.compute+xml;version=2',
},
{
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2",
'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",
'href': 'http://127.0.0.1:8774/v2/',
'rel': 'self',
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
"type": "application/pdf",
"rel": "describedby",
'href': 'http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf',
'type': 'application/pdf',
'rel': 'describedby',
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
'href': 'http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl',
'type': 'application/vnd.sun.wadl+xml',
'rel': 'describedby',
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
'href': 'http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl',
'type': 'application/vnd.sun.wadl+xml',
'rel': 'describedby',
},
],
},
}
"203":
'203':
description: |-
203 response
content:
Expand All @@ -142,37 +142,37 @@ paths:
foo:
value:
{
"version":
'version':
{
"status": "CURRENT",
"updated": "2011-01-21T11:33:21Z",
"media-types":
'status': 'CURRENT',
'updated': '2011-01-21T11:33:21Z',
'media-types':
[
{
"base": "application/xml",
"type": "application/vnd.openstack.compute+xml;version=2",
'base': 'application/xml',
'type': 'application/vnd.openstack.compute+xml;version=2',
},
{
"base": "application/json",
"type": "application/vnd.openstack.compute+json;version=2",
'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",
'href': 'http://23.253.228.211:8774/v2/',
'rel': 'self',
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
"type": "application/pdf",
"rel": "describedby",
'href': 'http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf',
'type': 'application/pdf',
'rel': 'describedby',
},
{
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
"type": "application/vnd.sun.wadl+xml",
"rel": "describedby",
'href': 'http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl',
'type': 'application/vnd.sun.wadl+xml',
'rel': 'describedby',
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions examples/v3.0/callback-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ paths:
format: uri
example: https://tonys-server.com
responses:
"201":
'201':
description: subscription successfully created
content:
application/json:
Expand All @@ -36,7 +36,7 @@ paths:
onData:
# when data is sent, it will be sent to the `callbackUrl` provided
# when making the subscription PLUS the suffix `/data`
"{$request.query.callbackUrl}/data":
'{$request.query.callbackUrl}/data':
post:
requestBody:
description: subscription payload
Expand All @@ -51,11 +51,11 @@ paths:
userData:
type: string
responses:
"202":
'202':
description: |
Your server implementation should return this HTTP status code
if the data was received successfully
"204":
'204':
description: |
Your server should return this HTTP status code if no longer interested
in further updates
36 changes: 18 additions & 18 deletions examples/v3.0/link-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ paths:
schema:
type: string
responses:
"200":
'200':
description: The User
content:
application/json:
schema:
$ref: "#/components/schemas/user"
$ref: '#/components/schemas/user'
links:
userRepositories:
$ref: "#/components/links/UserRepositories"
$ref: '#/components/links/UserRepositories'
/2.0/repositories/{username}:
get:
operationId: getRepositoriesByOwner
Expand All @@ -32,17 +32,17 @@ paths:
schema:
type: string
responses:
"200":
'200':
description: repositories owned by the supplied user
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/repository"
$ref: '#/components/schemas/repository'
links:
userRepository:
$ref: "#/components/links/UserRepository"
$ref: '#/components/links/UserRepository'
/2.0/repositories/{username}/{slug}:
get:
operationId: getRepository
Expand All @@ -58,15 +58,15 @@ paths:
schema:
type: string
responses:
"200":
'200':
description: The repository
content:
application/json:
schema:
$ref: "#/components/schemas/repository"
$ref: '#/components/schemas/repository'
links:
repositoryPullRequests:
$ref: "#/components/links/RepositoryPullRequests"
$ref: '#/components/links/RepositoryPullRequests'
/2.0/repositories/{username}/{slug}/pullrequests:
get:
operationId: getPullRequestsByRepository
Expand All @@ -90,14 +90,14 @@ paths:
- merged
- declined
responses:
"200":
'200':
description: an array of pull request objects
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/pullrequest"
$ref: '#/components/schemas/pullrequest'
/2.0/repositories/{username}/{slug}/pullrequests/{pid}:
get:
operationId: getPullRequestsById
Expand All @@ -118,15 +118,15 @@ paths:
schema:
type: string
responses:
"200":
'200':
description: a pull request object
content:
application/json:
schema:
$ref: "#/components/schemas/pullrequest"
$ref: '#/components/schemas/pullrequest'
links:
pullRequestMerge:
$ref: "#/components/links/PullRequestMerge"
$ref: '#/components/links/PullRequestMerge'
/2.0/repositories/{username}/{slug}/pullrequests/{pid}/merge:
post:
operationId: mergePullRequest
Expand All @@ -147,7 +147,7 @@ paths:
schema:
type: string
responses:
"204":
'204':
description: the PR was successfully merged
components:
links:
Expand Down Expand Up @@ -189,7 +189,7 @@ components:
slug:
type: string
owner:
$ref: "#/components/schemas/user"
$ref: '#/components/schemas/user'
pullrequest:
type: object
properties:
Expand All @@ -198,6 +198,6 @@ components:
title:
type: string
repository:
$ref: "#/components/schemas/repository"
$ref: '#/components/schemas/repository'
author:
$ref: "#/components/schemas/user"
$ref: '#/components/schemas/user'
Loading

0 comments on commit a6bd0df

Please sign in to comment.