swagger-api/swagger-codegen

[JAVA]need `JsonIgnore` on java fluent setter

Open

#5 099 ouverte le 17 mars 2017

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)HTML (5 474 forks)batch import
Client: JavaGeneral: Suggestionhelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Also want a configuration to diable java fluent setter. Here is my problem: I have a Schema Object which has a property like settlementNo then the generated class will have two setter

 public ConditionRequest settlementNo(String settlementNo) {
    this.settlementNo = settlementNo;
    return this;
  }
  public void setSettlementNo(String settlementNo) {
    this.settlementNo = settlementNo

then with the default configuration of spring-fox and spring-boot , in the spring-fox-swagger-ui the ConditionRequest would have two property

settlementNo(the right one)

tlementNo(the wrong one)

And if both of the property has a value, tlementNo's will overwrite settlementNo's

Guide contributeur