Skip to content

Model substitution #25

Description

@javierggi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions