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
Docket.ignoredParameterTypes() removes classes completly #893
Comments
@thomseno that was a bug unfortunately. the right way to hide properties is to either use an annotation to mark it as such |
Hi @dilipkrish thanks for the answer. The intention was to prevent generation of deep models. But if I use {
"printId": "string",
"printDate": "string"
} So if I have something like this {
"validFrom": "string",
"validTo": "string"
} it's hard to decide what input the service expects ( |
@thomseno that could go in the description via |
@thomseno You can use this: docket
.directModelSubstitute(LocalDate.class, java.sql.Date.class)
.directModelSubstitute(LocalDateTime.class, java.util.Date.class) You will get "localdate":
{
"type": "string",
"format": "date"
},
"localdatetime":
{
"type": "string",
"format": "date-time"
}, |
Just migrated our project from swagger-springmvc to springfox 2.1.2 and recognized, that my ignoredParameterTypes are missing completely in swagger:
swagger-springmvc:
springfox:
SwaggerConfig:
Just ignoring org.joda.time classes
The text was updated successfully, but these errors were encountered: