--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Which version of swagger-core do you use?
On Sun, Feb 8, 2015 at 5:32 PM, Ronny Shapiro <ro...@dudamobile.com> wrote:
Hey,I was wondering if it was possible to filter some @ApiModel properties based on some conditions.I'm using the same @ApiModels in different APIs but want to hide different properties in each one.I've been trying to apply "ApiModelProperty.access" but it doesn't work on ApiModels.As far as I know, writing my own Model Converter would make the filtering static and is out of context with calling method.I would really like to avoid creating a different model classes for every method.Any suggestions ?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
I'm fairly certain it is not possible, but let's see what Tony has to say about it.You're not looking to change the definition for the model for all APIs.
To be clear, you want to use a single model but change the model definition based on the operation itself?
On Sun, Feb 8, 2015 at 5:38 PM, Ronny Shapiro <ro...@dudamobile.com> wrote:
1.3.12
On Sunday, February 8, 2015 at 5:33:47 PM UTC+2, Ron wrote:
Which version of swagger-core do you use?
On Sun, Feb 8, 2015 at 5:32 PM, Ronny Shapiro <ro...@dudamobile.com> wrote:
Hey,I was wondering if it was possible to filter some @ApiModel properties based on some conditions.I'm using the same @ApiModels in different APIs but want to hide different properties in each one.I've been trying to apply "ApiModelProperty.access" but it doesn't work on ApiModels.As far as I know, writing my own Model Converter would make the filtering static and is out of context with calling method.I would really like to avoid creating a different model classes for every method.Any suggestions ?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
| boolean isPropertyAllowed( | |
| Model model, | |
| Property property, | |
| String propertyName, | |
| Map<String, List<String>> params, | |
| Map<String, String> cookies, | |
| Map<String, List<String>> headers); |