Closed mackoj closed 6 years ago
There isn’t a way to specify anything for JUST response models and not other models, as definitions can be used in both requests, responses or just be listed in the definitions.
You could add something for every model (definition) if you customize the template and add a protocol to model.stencil
All models now conform to APIModel
which you could add your extensions to #109
Thanks, again for this feature.
How can I make models that will be use in response(
$ref
) conform to a particular protocol ?The protocol conformance in question don't require adding code but only adding the conformance all the work is done in the protocol itself.
In this case I want to make the
User
conform toBaseModel
because all object that is in response always conform toBaseModel
.Thanks,