Skip to content

Instantly share code, notes, and snippets.

@fd
Created March 10, 2016 14:57
Show Gist options
  • Save fd/d6eaa0c7bc5d54c3d031 to your computer and use it in GitHub Desktop.
Save fd/d6eaa0c7bc5d54c3d031 to your computer and use it in GitHub Desktop.
---
swagger: "2.0"
host: example.cm
info:
title: "test"
version: "1"
paths:
"/test":
get:
responses:
200:
description: ""
schema:
'$ref': '#/definitions/resource1'
definitions:
resource1:
discriminator: type
required:
- type
properties:
type:
type: string
enum:
- 'custom'
custom:
description: a custom resource1
allOf:
- '$ref': '#/definitions/resource1'
- properties:
hello:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment