How to set a default empty list in swagger codegen

Viewed 344

There is an entity with a field

      cises:
        type: array
        description: An array of brands. The length must match the value of the quantity field, or the array must be empty
        items:
          type: string

Code java

  @SerializedName("cises")
  private List<String> cises = null;

How to use swagger codegen to set an empty list by default, instead of null

0 Answers
Related