-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unknown type: null. #33
Comments
Hi. This is how my bean declaration looks like: @Bean
GrailsPropertySelector propertySelector() {
return new DefaultGrailsPropertySelector() {
@Override
boolean test(GrailsDomainClassProperty each) {
boolean b = super.test(each) &&
!(each.referencedPropertyType == null && each.name == 'instituicaoId') &&
(each.isPersistent() || each.getName().endsWith("Id")) &&
!(Geometry.isAssignableFrom(each.type))
return b
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is my log:
Here is my Grails application project: https://github.com/dteam-top/grails-rest-seed
And I find the reason is that some fields cannot use
property.getReferencedPropertyType();
(Here will get null:springfox-grails-integration/springfox-grails/src/main/java/springfox/documentation/grails/DefaultGrailsPropertyTransformer.java
Line 9 in 88052cb
Here will trigger this error: https://github.com/DTeam-Top/grails-rest-seed/blob/1a5eeee346dd14b81fa54b2ba9a25d9a3156e169/grails-app/domain/top/dteam/earth/backend/user/User.groovy#L24
And this line: https://github.com/DTeam-Top/grails-rest-seed/blob/1a5eeee346dd14b81fa54b2ba9a25d9a3156e169/grails-app/domain/top/dteam/earth/backend/user/User.groovy#L54
I comment out these lines and works very well.
One is
Another is
The text was updated successfully, but these errors were encountered: