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

Latest commit

 

History

History
59 lines (46 loc) · 2.66 KB

File metadata and controls

59 lines (46 loc) · 2.66 KB

StringBooleanMap

org.openapijsonschematools.client.components.schemas.StringBooleanMap.java public class StringBooleanMap

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 StringBooleanMap.StringBooleanMap1
schema class
static class StringBooleanMap.StringBooleanMapMap
output class for Map payloads
static class StringBooleanMap.AdditionalProperties
schema class

StringBooleanMap1

public static class StringBooleanMap1
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("additionalProperties", new AdditionalPropertiesValidator(AdditionalProperties.class))
));

Method Summary

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

StringBooleanMapMap

public static class StringBooleanMapMap
extends FrozenMap<String, Boolean>

A class to store validated Map payloads

Method Summary

Modifier and Type Method and Description
static StringBooleanMapMap of(Map<String, Boolean> arg, SchemaConfiguration configuration)
boolean getAdditionalProperty(String name)
provides type safety for additional properties

Input Map Keys

type: Map<String, Object>
Key Type Description Notes
anyStringName boolean any string name can be used but the value must be the correct type [optional]

AdditionalProperties

public static class AdditionalProperties
extends BooleanJsonSchema

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.BooleanJsonSchema
validate

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