Skip to content

Example values in containers #1107

@santiagopoli

Description

@santiagopoli

I have an object defined as this:

public class CreationDTO {
   @ApiModelProperty(required = true)
   @JsonProperty("users") 
   private Set<Integer> users;
}

That object is shown in the UI as:

{
   "users": [0]
}

But I want it to be displayed as:

{
   "users": [1,2]
}

Is there a way to provide an example value for a container? I know there is an "example" property but it only accepts strings as values.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions