org.openapijsonschematools.client.components.schemas.JSONPatchRequest.java public class JSONPatchRequest
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 | JSONPatchRequest.JSONPatchRequest1 schema class |
| static class | JSONPatchRequest.JSONPatchRequestList output class for List payloads |
| static class | JSONPatchRequest.Items schema class |
public static class JSONPatchRequest1
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)) )); |
| Modifier and Type | Method and Description |
|---|---|
| static JSONPatchRequestList | validate(List arg, SchemaConfiguration configuration) |
public class JSONPatchRequestList
extends FrozenList<Object>
A class to store validated List payloads
| Modifier and Type | Method and Description |
|---|---|
| static JSONPatchRequestList | of(List arg, SchemaConfiguration configuration) |
type: List<Object>
| List Item Type | Description | Notes |
|---|---|---|
| Object |
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("oneOf", new OneOfValidator(List.of( JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1.class, JSONPatchRequestRemove.JSONPatchRequestRemove1.class, JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1.class ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static String | validate(String arg, SchemaConfiguration configuration) |
| static Void | validate(Void arg, SchemaConfiguration configuration) |
| static int | validate(int arg, SchemaConfiguration configuration) |
| static long | validate(long arg, SchemaConfiguration configuration) |
| static float | validate(float arg, SchemaConfiguration configuration) |
| static double | validate(double arg, SchemaConfiguration configuration) |
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
| static FrozenMap<String, Object> | Map<String, Object> arg, SchemaConfiguration configuration) |
| FrozenList | validate(List arg, SchemaConfiguration configuration) |