FasterXML / jackson-module-jsonSchema

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

add support to json "title": "..." through #84

Open matlach opened 9 years ago

matlach commented 9 years ago

According to : http://spacetelescope.github.io/understanding-json-schema/reference/generic.html#metadata along side "description" we also should be able to define the "title" property.

For description, this is achievable using @JsonPropertyDescription("..."). We should consider adding another annotation like @JsonPropertyTitle("...") to fill the gap.

Thanks,

cowtowncoder commented 9 years ago

Is this for JSON Schema v3 (one supported by the module); or later v4?

matlach commented 9 years ago

woopsy:

Note: This book describes JSON Schema draft 4. Earlier versions of JSON Schema are not completely compatible with the format described here.

cowtowncoder commented 9 years ago

@matlach Ok. Yes, this should be supported once there is v4 version... I don't know what progress there is, if any, although it has been discussed on jackson-dev. You may want to join as there is interested in getting there.