FasterXML / jackson-module-jsonSchema

Module for generating JSON Schema (v3) definitions from POJOs
371 stars 135 forks source link

Add support for `@JsonClassDescription` #88

Open cowtowncoder opened 9 years ago

cowtowncoder commented 9 years ago

(followup from: https://github.com/FasterXML/jackson-annotations/issues/73)

With 2.7, there is new annotation @JsonClassDescription, and appropriate access via AnnotationInstropector (call "findClassDescription()" or such). It would make sense to use this to get description for schema.

cowtowncoder commented 8 years ago

Ok; Jackson 2.7 has method findClassDescription() both in AnnotationIntrospector and in BasicBeanDescription. But I am not sure where to bolt that in here. PRs would be welcome.