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

Model substitution #25

Open
javierggi opened this issue Jun 21, 2018 · 1 comment
Open

Model substitution #25

javierggi opened this issue Jun 21, 2018 · 1 comment
Labels

Comments

@javierggi
Copy link

Hi, I am in need of substituting some Models in the following way. Lets say I have a domain class as follows:

package My.Domains

class Company {
    String name
    String address
    String firstAdditional
    String secondsAdditional
    String thirdAdditional
}

And a Model class as follows:

package My.Models

class Company {
    String name
    String address
}

I want Swagger to use the my model class as a template of what I need to send in a POST request. I tried using the following: directModelSubstitute(My.Domains.Company, My.Models.Company) but it does not work. Am i misunderstanding how this works or is there any other way to achieve this?

Also, is there a way to do something similar using a third class (model) for the responses?

@dilipkrish
Copy link
Member

What are u using in your operation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants