Skip to content

Instantly share code, notes, and snippets.

@reece
Created April 27, 2017 18:28
Show Gist options
  • Save reece/7d343afd3638fc530c3d3607b57ababd to your computer and use it in GitHub Desktop.
Save reece/7d343afd3638fc530c3d3607b57ababd to your computer and use it in GitHub Desktop.
swagger: "2.0"
info:
title: "https://github.com/swagger-api/swagger-codegen/issues/5460"
basePath: "/0"
schemes:
- "https"
- "http"
paths:
/test/:
get:
responses:
"200":
schema:
$ref: "#/definitions/Response"
"404":
description: "allele_id does not exist"
definitions:
Def1:
type: "string"
example: word
Def2:
type: "string"
example: two words
Def3:
type: "string"
example: "quotedword"
Def4:
type: "string"
example: "two quoted words"
Def5:
type: "object"
properties:
namespace:
type: "string"
example: "NCBI"
accession:
type: "string"
example: "ENST000001234.5"
Response:
type: "object"
properties:
d1:
$ref: "#/definitions/Def1"
d2:
$ref: "#/definitions/Def2"
d3:
$ref: "#/definitions/Def3"
d4:
$ref: "#/definitions/Def4"
d5:
$ref: "#/definitions/Def5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment