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

Latest commit

 

History

History
55 lines (43 loc) · 2.25 KB

File metadata and controls

55 lines (43 loc) · 2.25 KB

Address

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

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 Address.Address1
schema class
static class Address.AddressMap
output class for Map payloads
static class Address.AdditionalProperties
schema class

Address1

public static class Address1
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 AddressMap validate(Map<String, Long> arg, SchemaConfiguration configuration)

AddressMap

public static class AddressMap
extends FrozenMap<String, Long>

A class to store validated Map payloads

Method Summary

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

Input Map Keys

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

AdditionalProperties

public static class AdditionalProperties
extends IntJsonSchema

A schema class that validates payloads

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