Last active
June 5, 2018 14:51
-
-
Save cgrothaus/f3d9d4f8f4099a309fbe1a019ee70297 to your computer and use it in GitHub Desktop.
Swagger specification showing a name shadowing issue when generating ruby code with swagger-codegen 2.3.1, see https://github.com/swagger-api/swagger-codegen/issues/8283
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: | |
version: "1.0" | |
title: "Namespace issue demo swagger spec" | |
produces: | |
- application/json | |
paths: | |
/demo/{id}: | |
get: | |
operationId: getDemo | |
x-reactoryType: Mono | |
parameters: | |
- | |
name: id | |
in: path | |
description: The id | |
required: true | |
type: string | |
responses: | |
200: | |
description: OK | |
schema: | |
$ref: '#/definitions/Demo' | |
404: | |
description: Demo does not exist | |
500: | |
description: Unexpected error | |
schema: | |
$ref: '#/definitions/ApiError' | |
definitions: | |
ApiError: | |
description: An ApiError contains more detailed information about unexpected errors | |
type: object | |
properties: | |
code: | |
description: An application-specific error code | |
type: integer | |
description: | |
description: A human readable error description | |
type: string | |
Demo: | |
description: Demo data | |
type: object | |
properties: | |
id: | |
description: The id | |
type: string | |
foo: | |
description: Foo property | |
type: integer | |
example: | |
id: urn:123 | |
foo: 123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment