Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
70 lines (57 loc) · 3 KB

File metadata and controls

70 lines (57 loc) · 3 KB

JSONPatchRequest

org.openapijsonschematools.components.schemas.JSONPatchRequest.java public class JSONPatchRequest

A class that contains necessary nested schema classes, and classes to store validated list and map payloads

Nested Class Summary

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

JSONPatchRequest1

public static class JSONPatchRequest1
extends JsonSchema

A schema class that validates payloads

Field Summary

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))
));

Method Summary

Modifier and Type Method and Description
static JSONPatchRequestList validate(List arg, SchemaConfiguration configuration)

JSONPatchRequestList

public class JSONPatchRequestList
extends FrozenList<Object>

A class to store validated List payloads

Method Summary

Modifier and Type Method and Description
static JSONPatchRequestList of(List arg, SchemaConfiguration configuration)

Input List Items

type: List<Object>
List Item Type Description Notes
Object

Items

public static class Items
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description

Method Summary

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)

[Back to top] [Back to Component Schemas] [Back to README]