You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a custom annotation on the property of an object, this cannot be visited as the JsonFormatVisitorWrapper takes only the type of the property. I've looked also at subclassing ObjectSchema but since this takes the property name as a String only, seems I'd have to do some reflection to get back to the property itself.
I can see a significant number of use cases of wanting to customize a schema being related to the information associated with an object property (custom annotations, documentation, validation, etc.). My particular use-case is that the schema should provide some information for client-side validation, from the bean validation API.
If I have a custom annotation on the property of an object, this cannot be visited as the JsonFormatVisitorWrapper takes only the type of the property. I've looked also at subclassing ObjectSchema but since this takes the property name as a String only, seems I'd have to do some reflection to get back to the property itself.
I can see a significant number of use cases of wanting to customize a schema being related to the information associated with an object property (custom annotations, documentation, validation, etc.). My particular use-case is that the schema should provide some information for client-side validation, from the bean validation API.
I've seen threads suggesting that this would be possible (http://jackson-users.ning.com/forum/topics/json-schema-generation-with-jackson-module-jsonschema, http://jackson-users.ning.com/forum/topics/handling-a-custom-annotation-when-generating-json-schema) but I can't see it, myself.
Is there some mechanism I'm missing?
The text was updated successfully, but these errors were encountered: