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

Latest commit

 

History

History
27 lines (21 loc) · 1.63 KB

File metadata and controls

27 lines (21 loc) · 1.63 KB

IntegerEnum

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

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 IntegerEnum.IntegerEnum1
schema class

IntegerEnum1

public static class IntegerEnum1
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(
        Integer.class,
        Long.class,
        Float.class,
        Double.class
    ))),
    new KeywordEntry("enum", new EnumValidator(Set.of(
        0,        1,        2)))
));

Method Summary

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

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