@Documented @Retention(value=RUNTIME) public @interface SubItems
This class is essentially identical to Items
except it's used for defining items of items.
Since annotations cannot be nested, we're forced to create a separate annotation for it.
If you want to nest items further, you have to define them free-form using items()
as free-form JSON.
Modifier and Type | Optional Element and Description |
---|---|
String[] |
_default
|
String[] |
_enum
|
String |
$ref
|
String |
collectionFormat
|
boolean |
exclusiveMaximum
|
boolean |
exclusiveMinimum
|
String |
format
|
String[] |
items
|
String |
maximum
|
long |
maxItems
|
long |
maxLength
|
String |
minimum
|
long |
minItems
|
long |
minLength
|
String |
multipleOf
|
String |
pattern
|
String |
type
|
boolean |
uniqueItems
|
String[] |
value
Free-form value for the Swagger Items Object.
|
public abstract String type
public abstract String format
public abstract String collectionFormat
public abstract String pattern
public abstract String maximum
public abstract String minimum
public abstract String multipleOf
public abstract long maxLength
public abstract long minLength
public abstract long maxItems
public abstract long minItems
public abstract boolean exclusiveMaximum
public abstract boolean exclusiveMinimum
public abstract boolean uniqueItems
public abstract String[] _default
public abstract String[] _enum
public abstract String $ref
public abstract String[] items
Describes the type of items in the array.
This is a Simple JSON object.
It must be declared free-form because it's not possible to nest annotations in Java.
public abstract String[] value
This is a Simple JSON object that makes up the swagger information for this field.
The following are completely equivalent ways of defining the swagger description of an Items object:
The reasons why you may want to use this field include:
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.