Skip to content

Instantly share code, notes, and snippets.

@e-nikolov
Last active March 19, 2019 19:22
Show Gist options
  • Save e-nikolov/79a0ef8cfcc765e5e155025a06ff6a18 to your computer and use it in GitHub Desktop.
Save e-nikolov/79a0ef8cfcc765e5e155025a06ff6a18 to your computer and use it in GitHub Desktop.
---
swagger: "2.0"
info:
description: "No description"
version: "1.0.0"
title: "api"
contact: {}
paths:
/:
get:
responses:
200:
description: "200"
schema:
type: "object"
properties:
a:
x-order: 0
type: string
b:
x-order: 1
type: integer
sub:
x-order: 2
$ref: 'definitions.yaml#/definitions/SubResponse'
---
swagger: "2.0"
info:
description: "No description"
version: "1.0.0"
title: "api"
contact: {}
paths:
definitions:
SubResponse:
properties:
d:
type: string
e:
type: string
swagger: "2.0"
info:
description: No description
title: api
contact: {}
version: 1.0.0
paths:
/:
get:
responses:
"200":
description: "200"
schema:
type: object
properties:
a:
type: string
x-order: 0
b:
type: integer
x-order: 1
sub:
$ref: '#/definitions/subResponse'
x-order: 2
definitions:
subResponse:
properties:
d:
type: string
e:
type: string
swagger: "2.0"
info:
description: No description
title: api
contact: {}
version: 1.0.0
paths:
/:
get:
responses:
"200":
description: "200"
schema:
type: object
properties:
a:
type: string
x-order: 0
b:
type: integer
x-order: 1
sub:
$ref: '#/definitions/subResponse'
definitions:
subResponse:
properties:
d:
type: string
e:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment