Skip to content

Instantly share code, notes, and snippets.

@tomblench
Created August 24, 2018 08:01
Show Gist options
  • Save tomblench/32e911f584483973385b9e6aaeeac450 to your computer and use it in GitHub Desktop.
Save tomblench/32e911f584483973385b9e6aaeeac450 to your computer and use it in GitHub Desktop.
---
openapi: "3.0.0"
externalDocs:
description: Test
url: http://test.com/test
info:
version: 0.0.1
title: Test
license:
name: Test
url: http://test.com/test
servers:
- url: http://test.com/test
paths:
/:
get:
description: Test
summary: Test
operationId: getTest
responses:
200:
description: Response with schema containing reference
content:
application/json:
schema:
$ref: "./components/schema-with-reference.yaml"
---
type: object
---
type: object
properties:
reference_array:
type: array
items:
$ref: "./components/referent.yaml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment