Skip to content

Instantly share code, notes, and snippets.

@DavidBiesack
Created August 8, 2018 13:11
Show Gist options
  • Save DavidBiesack/567cfaf86bbcd0b210208b0d4e8f741a to your computer and use it in GitHub Desktop.
Save DavidBiesack/567cfaf86bbcd0b210208b0d4e8f741a to your computer and use it in GitHub Desktop.
widdershins not resolving external $ref schema
swagger: '2.0'
info:
title: Widdershins example
description: Demonstrate $ref for external schema
version: 0.1.0
schemes:
- http
basePath: /widdershinsRefExample
paths:
/example:
get:
summary: Return something
description: Return something
operationId: getExample
responses:
'200':
description: OK
schema:
$ref: '#/definitions/response'
definitions:
response:
title: Response with external schema
description: Response with external schema
type: object
properties:
amount:
description: A monetary amount.
type: object
allOf:
- $ref: 'https://gist.githubusercontent.com/DavidBiesack/0753c16156df8d426256d85cb36c5585/raw/5a58be09cb0b83a5e7ad0fef92162a738a0a32ce/money.json'
memo:
description: An optional user-assigned memo.
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment