Skip to content

Instantly share code, notes, and snippets.

@lekoder
Created April 21, 2017 06:41
Show Gist options
  • Save lekoder/633c1681ad744ea65a9e4c241741d489 to your computer and use it in GitHub Desktop.
Save lekoder/633c1681ad744ea65a9e4c241741d489 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
title: Composing Error Demo
description: demo of composing error
version: 0.1.0
schemes:
- http
paths:
/:
get:
responses:
'200':
description: Dummy description
schema:
$ref: '#/definitions/Composed'
definitions:
Simple1:
type: object
properties:
id1:
type: integer
format: int64
Simple2:
type: object
properties:
id2:
type: integer
format: int64
Composed:
title: TestComposedTitle
allOf:
- $ref: '#/definitions/Simple1'
- $ref: '#/definitions/Simple2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment