Skip to content
New issue

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

Generate all models necessary for specified operation #1427

Closed
bhenderson opened this issue Feb 21, 2018 · 1 comment · Fixed by #1842
Closed

Generate all models necessary for specified operation #1427

bhenderson opened this issue Feb 21, 2018 · 1 comment · Fixed by #1842
Labels
faq model Related to swagger generate model command question

Comments

@bhenderson
Copy link

Problem statement

I'm specifying specific operations and I'd like to restrict the models to those needed for those operations. Is there a way to do that?

thanks,

@fredbi fredbi added unanswered model Related to swagger generate model command and removed unanswered labels Mar 25, 2018
@fredbi
Copy link
Contributor

fredbi commented Mar 25, 2018

When using the generate server command, a repeatable --operation=xxx is available to restrict the scope of operations. That should normally work for you. This option is not available for generate model.
Does this address your problem?

@fredbi fredbi added the faq label Dec 17, 2018
fredbi added a commit to fredbi/go-swagger that referenced this issue Dec 17, 2018
fredbi added a commit to fredbi/go-swagger that referenced this issue Dec 21, 2018
Moves issues tagged as questions to FAQ doc site

* fixes  go-swagger#1552
* fixes  go-swagger#1501
* fixes  go-swagger#1432
* fixes  go-swagger#1383
* fixes  go-swagger#1381
* fixes  go-swagger#1337
* fixes  go-swagger#1217
* fixes  go-swagger#1205
* fixes  go-swagger#1143
* fixes  go-swagger#1060
* fixes  go-swagger#1022

* fixes go-swagger#1427
* fixes go-swagger#1759
* fixes go-swagger#1517
@fredbi fredbi mentioned this issue Dec 21, 2018
fredbi added a commit to fredbi/go-swagger that referenced this issue Dec 21, 2018
Moves issues tagged as questions to FAQ doc site

* fixes  go-swagger#1552
* fixes  go-swagger#1501
* fixes  go-swagger#1432
* fixes  go-swagger#1383
* fixes  go-swagger#1381
* fixes  go-swagger#1337
* fixes  go-swagger#1217
* fixes  go-swagger#1205
* fixes  go-swagger#1143
* fixes  go-swagger#1060
* fixes  go-swagger#1022
* fixes go-swagger#1427
* fixes go-swagger#1759
* fixes go-swagger#1517

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
casualjim pushed a commit that referenced this issue Dec 22, 2018
Moves issues tagged as questions to FAQ doc site

* fixes  #1552
* fixes  #1501
* fixes  #1432
* fixes  #1383
* fixes  #1381
* fixes  #1337
* fixes  #1217
* fixes  #1205
* fixes  #1143
* fixes  #1060
* fixes  #1022
* fixes #1427
* fixes #1759
* fixes #1517

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq model Related to swagger generate model command question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants