Skip to content

Bug fixes for generating operation models#680

Merged
casualjim merged 2 commits intogo-swagger:masterfrom
dnephin:operations-template
Oct 5, 2016
Merged

Bug fixes for generating operation models#680
casualjim merged 2 commits intogo-swagger:masterfrom
dnephin:operations-template

Conversation

@dnephin
Copy link
Copy Markdown
Contributor

@dnephin dnephin commented Oct 5, 2016

Fixes #676

  • adds --skip-validator to swagger generate operation so that models can be generated without validation
  • fixes a bug where anonymous response objects were created with a suffix of BodyBody. Now only one Body as appended
  • adds support for setting the name of an anonymous schema from the title

If any of this is controversial I'd be happy to split it into a separate PR to get the rest merged.

Also support setting a custom name with the schema title

Signed-off-by: Daniel Nephin <[email protected]>
@codecov-io
Copy link
Copy Markdown

Current coverage is 75.42% (diff: 100%)

Merging #680 into master will not change coverage

@@             master       #680   diff @@
==========================================
  Files             8          8          
  Lines          1994       1994          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1504       1504          
  Misses          336        336          
  Partials        154        154          

Powered by Codecov. Last update e4435d7...dfae7e6

@casualjim casualjim merged commit 3a8d80e into go-swagger:master Oct 5, 2016
@casualjim
Copy link
Copy Markdown
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generating a model from an inline response schema

3 participants