-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Problem statement
When using swagger flatten
to resolve remote specs into a single output, the resolved type names are changed to lowercase.
The case should be preserved.
Swagger specification
2.0
Steps to reproduce
- Create a spec (foo.yaml)
paths:
/bar:
get:
responses:
200:
description: OK
schema:
$ref: "./bar.yaml#/definitions/Bar"
- Create a second spec (bar.yaml)
paths: {}
definitions:
Bar:
type: object
properties:
Baz:
type: string
- Flatten
swagger flatten
-o flat.yaml --format=yaml foo.yaml
- Check flat.yaml
paths:
/bar:
get:
responses:
200:
description: OK
schema:
$ref:: "#/definitions/bar
definitions:
bar: <---- why the case change????
type: object
properties:
Baz:
type: string
Environment
swagger version: v0.24.0
go version: 1.14.1
OS: Ubuntu
dimovnike