fabiomaffioletti / jsondoc

Easily generate docs and playground for your RESTful API
http://jsondoc.org
MIT License
264 stars 128 forks source link

@JsonIgnore not ignored #159

Open stuartlewis opened 8 years ago

stuartlewis commented 8 years ago

When using import com.fasterxml.jackson.annotation.JsonIgnore via @JsonIgnore annotations, these are still included in the generated json example via the JSONDOC UI.

They are excluded from JSONDOC UI web page table, but are included in the json example in the right hand column.

For example:

 // Deposit Identifier
@Id
@ApiObjectField(description = "Universally Unique Identifier for the Deposit", name="Deposit")
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid2")
@Column(name = "id", unique = true)
private String id;

 // JSON Vault relationship
@JsonIgnore
@ManyToOne
private Vault vault;

It would be great is JSONDOC could also obey the @JsonIgnore annotations. Thanks!

fabiomaffioletti commented 8 years ago

See #171