Skip to content

Commit c10e144

Browse files
committed
Fix indents in Links example
Fix Links example (https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#example-1): * Fix indents * Remove the type property from parameter, as it's already defined in the schema property * Add a name to the link
1 parent 5338ab3 commit c10e144

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

versions/3.0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,6 @@ paths:
22432243
operationId: getRepository
22442244
parameters:
22452245
- name: username
2246-
type: string
22472246
in: path
22482247
required: true
22492248
schema:
@@ -2256,7 +2255,7 @@ paths:
22562255
responses:
22572256
'200':
22582257
description: The repository
2259-
content:
2258+
content:
22602259
application/json:
22612260
schema:
22622261
$ref: '#/components/schemas/repository'
@@ -2321,7 +2320,8 @@ paths:
23212320
schema:
23222321
$ref: '#/components/schemas/pullrequest'
23232322
links:
2324-
$ref: '#/components/links/PullRequestMerge'
2323+
pullRequestMerge:
2324+
$ref: '#/components/links/PullRequestMerge'
23252325
/2.0/repositories/{username}/{slug}/pullrequests/{pid}/merge:
23262326
post:
23272327
operationId: mergePullRequest
@@ -2360,7 +2360,7 @@ components:
23602360
RepositoryPullRequests:
23612361
# returns '#/components/schemas/pullrequest'
23622362
operationId: getPullRequestsByRepository
2363-
parameters:
2363+
parameters:
23642364
username: $response.body#/owner/username
23652365
slug: $response.body#/slug
23662366
PullRequestMerge:

0 commit comments

Comments
 (0)