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

Latest commit

 

History

History
61 lines (47 loc) · 2.27 KB

File metadata and controls

61 lines (47 loc) · 2.27 KB

Items

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

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 Items.Items1
schema class
static class Items.ItemsList
output class for List payloads
static class Items.Items2
schema class

Items1

public static class Items1
extends JsonSchema

A schema class that validates payloads

Description

component's name collides with the inner schema name

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(Items2.class))
));

Method Summary

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

ItemsList

public class ItemsList
extends FrozenList<FrozenMap<String, Object>>

A class to store validated List payloads

Method Summary

Modifier and Type Method and Description
static ItemsList of(List<Map<String, Object>> arg, SchemaConfiguration configuration)

Input List Items

type: List<Map<String, Object>>
List Item Type Description Notes
Map<String, Object>

Items2

public static class Items2
extends MapJsonSchema

A schema class that validates payloads

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

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