Skip to content

Instantly share code, notes, and snippets.

@lekoder
Last active April 21, 2017 05:35
Show Gist options
  • Save lekoder/c03a0751609829888451909539f315be to your computer and use it in GitHub Desktop.
Save lekoder/c03a0751609829888451909539f315be 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:
type: object
properties:
scalar:
$ref: '#/definitions/Scalar'
array:
$ref: '#/definitions/Array'
definitions:
Scalar:
type: string
Array:
type: array
items:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment