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

Latest commit

 

History

History
46 lines (37 loc) · 2.46 KB

File metadata and controls

46 lines (37 loc) · 2.46 KB

FruitReq

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

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 FruitReq.FruitReq1
schema class
static class FruitReq.Schema0
schema class

FruitReq1

public static class FruitReq1
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("oneOf", new OneOfValidator(List.of(
        Schema0.class,
        AppleReq.AppleReq1.class,
        BananaReq.BananaReq1.class
    )))
));

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)

Schema0

public static class Schema0
extends NullJsonSchema

A schema class that validates payloads

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

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