org.openapijsonschematools.client.components.schemas.SelfReferencingArrayModel.java public class SelfReferencingArrayModel
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 | SelfReferencingArrayModel.SelfReferencingArrayModel1 schema class |
| static class | SelfReferencingArrayModel.SelfReferencingArrayModelList output class for List payloads |
public static class SelfReferencingArrayModel1
extends JsonSchema
A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.MapMaker;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
import java.util.Arrays;
import java.util.List;
import java.util.AbstractMap;
static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone());
// List validation
SelfReferencingArrayModel.SelfReferencingArrayModelList validatedPayload =
SelfReferencingArrayModel.SelfReferencingArrayModel1.validate(
Arrays.asList(
),
configuration
);
| 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(SelfReferencingArrayModel1.class)) )); |
| Modifier and Type | Method and Description |
|---|---|
| static SelfReferencingArrayModelList | validate(List arg, SchemaConfiguration configuration) |
public class SelfReferencingArrayModelList
extends FrozenList<SelfReferencingArrayModelList>
A class to store validated List payloads
| Modifier and Type | Method and Description |
|---|---|
| static SelfReferencingArrayModelList | of(List arg, SchemaConfiguration configuration) |
type: List<List>
| List Item Type | Description | Notes |
|---|---|---|
| List |