Annotation Type ApiModelProperty

    • Element Detail

      • value

        String value
        A brief description of this property.
        Default:
        ""
      • name

        String name
        Allows overriding the name of the property.
        Returns:
        the overridden property name
        Default:
        ""
      • allowableValues

        String allowableValues
        Limits the acceptable values for this parameter.

        There are three ways to describe the allowable values:

        1. To set a list of values, provide a comma-separated list. For example: first, second, third.
        2. To set a range of values, start the value with "range", and surrounding by square brackets include the minimum and maximum values, or round brackets for exclusive minimum and maximum values. For example: range[1, 5], range(1, 5), range[1, 5).
        3. To set a minimum/maximum value, use the same format for range but use "infinity" or "-infinity" as the second value. For example, range[1, infinity] means the minimum allowable value of this parameter is 1.
        Default:
        ""
      • access

        String access
        Allows for filtering a property from the API documentation. See io.swagger.core.filter.SwaggerSpecFilter.
        Default:
        ""
      • notes

        String notes
        Currently not in use.
        Default:
        ""
      • dataType

        String dataType
        The data type of the parameter.

        This can be the class name or a primitive. The value will override the data type as read from the class property.

        Default:
        ""
      • required

        boolean required
        Specifies if the parameter is required or not.
        Default:
        false
      • position

        int position
        Allows explicitly ordering the property in the model.
        Default:
        0
      • hidden

        boolean hidden
        Allows a model property to be hidden in the Swagger model definition.
        Default:
        false
      • example

        String example
        A sample value for the property.
        Default:
        ""
      • readOnly

        @Deprecated
        boolean readOnly
        Deprecated.
        As of 1.5.19, replaced by accessMode()
        Allows a model property to be designated as read only.
        Default:
        false
      • accessMode

        ApiModelProperty.AccessMode accessMode
        Allows to specify the access mode of a model property (AccessMode.READ_ONLY, READ_WRITE)
        Since:
        1.5.19
        Default:
        io.swagger.annotations.ApiModelProperty.AccessMode.AUTO
      • reference

        String reference
        Specifies a reference to the corresponding type definition, overrides any other metadata specified
        Default:
        ""
      • allowEmptyValue

        boolean allowEmptyValue
        Allows passing an empty value
        Since:
        1.5.11
        Default:
        false
      • extensions

        Extension[] extensions
        Returns:
        an optional array of extensions
        Default:
        {@io.swagger.annotations.Extension(properties={@io.swagger.annotations.ExtensionProperty(name="", value="")})}