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

Latest commit

 

History

History
110 lines (85 loc) · 5.4 KB

File metadata and controls

110 lines (85 loc) · 5.4 KB

JSONPatchRequestMoveCopy

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

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 JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1
schema class
static class JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap
output class for Map payloads
static class JSONPatchRequestMoveCopy.Op
schema class
static class JSONPatchRequestMoveCopy.Path
schema class
static class JSONPatchRequestMoveCopy.From
schema class
static class JSONPatchRequestMoveCopy.AdditionalProperties
schema class

JSONPatchRequestMoveCopy1

public static class JSONPatchRequestMoveCopy1
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(FrozenMap.class))),
    new KeywordEntry("properties", new PropertiesValidator(Map.ofEntries(
        new PropertyEntry("from", From.class)),
        new PropertyEntry("path", Path.class)),
        new PropertyEntry("op", Op.class))
    ))),
    new KeywordEntry("required", new RequiredValidator(Set.of(
        "from",
        "op",
        "path"
    ))),
    new KeywordEntry("additionalProperties", new AdditionalPropertiesValidator(AdditionalProperties.class))
));

Method Summary

Modifier and Type Method and Description
static JSONPatchRequestMoveCopyMap validate(Map<String, String> arg, SchemaConfiguration configuration)

JSONPatchRequestMoveCopyMap

public static class JSONPatchRequestMoveCopyMap
extends FrozenMap<String, String>

A class to store validated Map payloads

Method Summary

Modifier and Type Method and Description
static JSONPatchRequestMoveCopyMap of(Map<String, String> arg, SchemaConfiguration configuration)
String from()
String op()
must be one of ["move", "copy"]
String path()

Input Map Keys

type: Map<String, Object>
Key Type Description Notes
from String A JSON Pointer path.
op String The operation to perform. must be one of ["move", "copy"]
path String A JSON Pointer path.

Op

public static class Op
extends JsonSchema

A schema class that validates payloads

Description

The operation to perform.

Field Summary

Modifier and Type Field and Description
static LinkedHashMap<String, KeywordValidator> keywordToValidator
new LinkedHashMap<>(Map.ofEntries(
    new KeywordEntry("type", new TypeValidator(Set.of(
        String.class
    ))),
    new KeywordEntry("enum", new EnumValidator(Set.of(
        "move",
        "copy"
)))
));

Method Summary

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

Path

public static class Path
extends StringJsonSchema

A schema class that validates payloads

Description

A JSON Pointer path.

Methods Inherited from class org.openapijsonschematools.schemas.StringJsonSchema
validate

From

public static class From
extends StringJsonSchema

A schema class that validates payloads

Description

A JSON Pointer path.

Methods Inherited from class org.openapijsonschematools.schemas.StringJsonSchema
validate

AdditionalProperties

public static class AdditionalProperties
extends NotAnyTypeJsonSchema

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.schemas.NotAnyTypeJsonSchema
validate

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