Annotation Interface Array
When this annotation is used on a collection or an array additional properties and constraints can be applied.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDetermines if the collection is allowed to be empty.booleanDetermines if collections containing complex objects can be inlined.intThe threshold used when deciding if the collection should be inlined.
-
Element Details
-
inlineCount
int inlineCountThe threshold used when deciding if the collection should be inlined. Inlined collections are written as arrays without newlines between their values.- Returns:
- The threshold for deciding if the collection should be inlined.
- Default:
5
-
inlineComplex
boolean inlineComplexDetermines if collections containing complex objects can be inlined. By default, only JSON primitives will be inlinable.- Returns:
- If complex objects can be inlined.
- Default:
false
-
allowEmpty
boolean allowEmptyDetermines if the collection is allowed to be empty.- Returns:
- If the collection may be empty.
- Default:
true
-