Created
April 27, 2017 18:28
-
-
Save reece/7d343afd3638fc530c3d3607b57ababd to your computer and use it in GitHub Desktop.
minimal example for https://github.com/swagger-api/swagger-codegen/issues/5460
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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