We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This just started happening with 0.12.0 I believe.
Generated models structure has changed for composites from:
type ReportScore struct { ScoreData LastUpdateTime *string `json:"lastUpdateTime"` }
to
type ReportScore struct { ScoreData ReportScoreAllOf1 }
for the following specification:
ReportScore: allOf: - $ref: '#/definitions/ScoreData' - type: object properties: lastUpdateTime: type: string required: [lastUpdateTime]
swagger generate client -t swaggen -f apispec.yaml
swagger version: 0.12.0 go version: 1.8.3 OS: Mac OS 10.10.5
The text was updated successfully, but these errors were encountered:
if you build the swagger command from master you can generate your client with a --skip-flatten flag and that should restore the previous behavior
--skip-flatten
Sorry, something went wrong.
No branches or pull requests
This just started happening with 0.12.0 I believe.
Problem statement
Generated models structure has changed for composites from:
to
for the following specification:
Swagger specification
Steps to reproduce
swagger generate client -t swaggen -f apispec.yaml
Environment
swagger version: 0.12.0
go version: 1.8.3
OS: Mac OS 10.10.5
The text was updated successfully, but these errors were encountered: