@Target(value={FIELD,METHOD,PARAMETER,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface ArraySchema
swagger-core resolver and swagger-jaxrs2 reader engine consider this annotation along with JAX-RS annotations, element type and context as input to resolve the annotated element into an OpenAPI schema definition for such element.
The annotation Schema
shall be used for non array elements; ArraySchema
and Schema
cannot
coexist
Schema
Modifier and Type | Optional Element and Description |
---|---|
int |
maxItems
sets the maximum number of items in an array.
|
int |
minItems
sets the minimum number of items in an array.
|
Schema |
schema
The schema of the items in the array
|
boolean |
uniqueItems
determines whether an array of items will be unique
|
public abstract Schema schema
public abstract int maxItems
Copyright © 2017. All rights reserved.