org.openapijsonschematools.components.schemas.ArrayWithValidationsInItems.java public class ArrayWithValidationsInItems
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
| Modifier and Type | Class and Description |
|---|---|
| static class | ArrayWithValidationsInItems.ArrayWithValidationsInItems1 schema class |
| static class | ArrayWithValidationsInItems.ArrayWithValidationsInItemsList output class for List payloads |
| static class | ArrayWithValidationsInItems.Items schema class |
public static class ArrayWithValidationsInItems1
extends JsonSchema
A schema class that validates payloads
| Modifier and Type | Field and Description |
|---|---|
| static LinkedHashMap<String, KeywordValidator> | keywordToValidator new LinkedHashMap<>(Map.ofEntries( new KeywordEntry("type", new TypeValidator(Set.of(FrozenList.class))), new KeywordEntry("items", new ItemsValidator(Items.class)), new KeywordEntry("maxItems", new MaxItemsValidator(2)) )); |
| Modifier and Type | Method and Description |
|---|---|
| static ArrayWithValidationsInItemsList | validate(List arg, SchemaConfiguration configuration) |
public class ArrayWithValidationsInItemsList
extends FrozenList<Long>
A class to store validated List payloads
| Modifier and Type | Method and Description |
|---|---|
| static ArrayWithValidationsInItemsList | of(List arg, SchemaConfiguration configuration) |
type: List<Long>
| List Item Type | Description | Notes |
|---|---|---|
| Long | value must be a 64 bit integer |
public static class Items
extends JsonSchema
A schema class that validates payloads
| Modifier and Type | Field and Description |
|---|---|
| static LinkedHashMap<String, KeywordValidator> | keywordToValidator new LinkedHashMap<>(Map.ofEntries( new KeywordEntry("type", new TypeValidator(Set.of( Integer.class, Long.class, Float.class, Double.class ))), new KeywordEntry("format", new FormatValidator("int64")), new KeywordEntry("maximum", new MaximumValidator(7)) )); |
| Modifier and Type | Method and Description |
|---|---|
| static long | validate(long arg, SchemaConfiguration configuration) |