Standard output
---
openapi: 3.0.3
info:
title: Merged documentation
version: "1.0"
paths:
/test1/testbar:
post:
parameters:
- $ref: '#/components/parameters/barParameter'
requestBody:
$ref: '#/components/requestBodies/barRequestBody'
responses:
"200":
$ref: '#/components/responses/barResponse'
"202":
description: success
callbacks:
test1:
$ref: '#/components/callbacks/barCallback'
security:
- barSecurityScheme: []
/test1/testfoo:
post:
parameters:
- $ref: '#/components/parameters/fooParameter'
requestBody:
$ref: '#/components/requestBodies/fooRequestBody'
responses:
"200":
$ref: '#/components/responses/fooResponse'
"202":
description: success
callbacks:
test1:
$ref: '#/components/callbacks/fooCallback'
security:
- fooSecurityScheme: []
/test2/testfoo:
post:
parameters:
- $ref: '#/components/parameters/fooParameter1'
requestBody:
$ref: '#/components/requestBodies/fooRequestBody1'
responses:
"200":
$ref: '#/components/responses/fooResponse1'
"202":
description: success
callbacks:
test2:
$ref: '#/components/callbacks/fooCallback1'
security:
- fooSecurityScheme1: []
components:
schemas:
barSchema:
description: test1
type: string
fooSchema:
description: test1
type: string
fooSchema1:
description: test2
type: string
responses:
fooResponse:
description: test1
headers:
foo:
$ref: '#/components/headers/fooHeader'
content:
text/plain:
schema:
$ref: '#/components/schemas/fooSchema'
examples:
foo:
$ref: '#/components/examples/fooExample'
links:
foo:
$ref: '#/components/links/fooLink'
barResponse:
description: test1
headers:
bar:
$ref: '#/components/headers/barHeader'
content:
text/plain:
schema:
$ref: '#/components/schemas/barSchema'
examples:
bar:
$ref: '#/components/examples/barExample'
links:
bar:
$ref: '#/components/links/barLink'
fooResponse1:
description: test2
headers:
foo:
$ref: '#/components/headers/fooHeader1'
content:
text/plain:
schema:
$ref: '#/components/schemas/fooSchema1'
examples:
foo:
$ref: '#/components/examples/fooExample1'
links:
foo:
$ref: '#/components/links/fooLink1'
parameters:
barParameter:
name: bar
in: query
description: test1
required: true
schema:
type: string
fooParameter:
name: foo
in: query
description: test1
required: true
schema:
type: string
fooParameter1:
name: foo
in: query
description: test2
required: true
schema:
type: string
examples:
barExample:
value: test1
fooExample:
value: test1
fooExample1:
value: test2
requestBodies:
fooRequestBody:
description: test1
content: {}
barRequestBody:
description: test1
content: {}
fooRequestBody1:
description: test2
content: {}
headers:
barHeader:
description: test1
schema:
type: string
fooHeader:
description: test1
schema:
type: string
fooHeader1:
description: test2
schema:
type: string
securitySchemes:
fooSecurityScheme:
type: apiKey
name: test1
in: query
barSecurityScheme:
type: apiKey
name: test1
in: query
fooSecurityScheme1:
type: apiKey
name: test2
in: query
links:
fooLink:
description: test1
barLink:
description: test1
fooLink1:
description: test2
callbacks:
fooCallback:
$request.body#/callbackURL:
post:
requestBody:
description: test1
content:
application/json:
schema:
type: object
responses:
"202":
description: test1
barCallback:
$request.body#/callbackURL:
post:
requestBody:
description: test1
content:
application/json:
schema:
type: object
responses:
"202":
description: test1
fooCallback1:
$request.body#/callbackURL:
post:
requestBody:
description: test2
content:
application/json:
schema:
type: object
responses:
"202":
description: test2
---
openapi: 3.0.3
info:
title: Merged documentation
version: "1.0"
paths:
/test1/testbar:
post:
parameters:
- $ref: '#/components/parameters/barParameter'
requestBody:
$ref: '#/components/requestBodies/barRequestBody'
responses:
"200":
$ref: '#/components/responses/barResponse'
"202":
description: success
callbacks:
test:
$ref: '#/components/callbacks/barCallback'
security:
- barSecurityScheme: []
/test1/testfoo:
post:
parameters:
- $ref: '#/components/parameters/fooParameter'
requestBody:
$ref: '#/components/requestBodies/fooRequestBody'
responses:
"200":
$ref: '#/components/responses/fooResponse'
"202":
description: success
callbacks:
test:
$ref: '#/components/callbacks/fooCallback'
security:
- fooSecurityScheme: []
/test2/testfoo:
post:
parameters:
- $ref: '#/components/parameters/fooParameter'
requestBody:
$ref: '#/components/requestBodies/fooRequestBody'
responses:
"200":
$ref: '#/components/responses/fooResponse'
"202":
description: success
callbacks:
test:
$ref: '#/components/callbacks/fooCallback'
security:
- fooSecurityScheme: []
components:
schemas:
barSchema:
description: test
type: string
fooSchema:
description: test
type: string
responses:
fooResponse:
description: test
headers:
foo:
$ref: '#/components/headers/fooHeader'
content:
text/plain:
schema:
$ref: '#/components/schemas/fooSchema'
examples:
foo:
$ref: '#/components/examples/fooExample'
links:
foo:
$ref: '#/components/links/fooLink'
barResponse:
description: test
headers:
bar:
$ref: '#/components/headers/barHeader'
content:
text/plain:
schema:
$ref: '#/components/schemas/barSchema'
examples:
bar:
$ref: '#/components/examples/barExample'
links:
bar:
$ref: '#/components/links/barLink'
parameters:
barParameter:
name: bar
in: query
description: test
required: true
schema:
type: string
fooParameter:
name: foo
in: query
description: test
required: true
schema:
type: string
examples:
barExample:
value: test
fooExample:
value: test
requestBodies:
fooRequestBody:
description: test
content: {}
barRequestBody:
description: test
content: {}
headers:
barHeader:
description: test
schema:
type: string
fooHeader:
description: test
schema:
type: string
securitySchemes:
fooSecurityScheme:
type: apiKey
name: test
in: query
barSecurityScheme:
type: apiKey
name: test
in: query
links:
fooLink:
description: test
barLink:
description: test
callbacks:
fooCallback:
$request.body#/callbackURL:
post:
requestBody:
description: test
content:
application/json:
schema:
type: object
responses:
"202":
description: test
barCallback:
$request.body#/callbackURL:
post:
requestBody:
description: test
content:
application/json:
schema:
type: object
responses:
"202":
description: test
---
openapi: 3.0.3
info:
title: Merged documentation
version: "1.0"
paths:
/test1/testA:
get:
operationId: getTest
responses:
"202":
description: success
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/test'
responses:
"200":
description: success
links:
idLink:
operationId: getTest
refLink:
operationRef: '#/paths/~1test1~1testA/get'
/test2/testB:
get:
operationId: getTest1
responses:
"202":
description: success
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/test2'
responses:
"200":
description: success
links:
idLink:
operationId: getTest1
refLink:
operationRef: '#/paths/~1test2~1testB/get'
components:
schemas:
test:
required:
- id
- name
properties:
name:
type: string
id:
type: string
test2:
required:
- id
- name
properties:
name:
type: string
id:
type: string