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

Latest commit

 

History

History
68 lines (54 loc) · 3.53 KB

File metadata and controls

68 lines (54 loc) · 3.53 KB

AbstractStepMessage

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

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 AbstractStepMessage.AbstractStepMessage1
schema class
static class AbstractStepMessage.AbstractStepMessageMap
output class for Map payloads
static class AbstractStepMessage.Discriminator
schema class

AbstractStepMessage1

public static class AbstractStepMessage1
extends JsonSchema

A schema class that validates payloads

Description

Abstract Step

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("properties", new PropertiesValidator(Map.ofEntries(
        new PropertyEntry("discriminator", Discriminator.class))
    ))),
    new KeywordEntry("required", new RequiredValidator(Set.of(
        "description",
        "discriminator",
        "sequenceNumber"
    ))),
    new KeywordEntry("anyOf", new AnyOfValidator(List.of(
        AbstractStepMessage1.class
    )))
));

Method Summary

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

AbstractStepMessageMap

public static class AbstractStepMessageMap
extends FrozenMap<String, Object>

A class to store validated Map payloads

Method Summary

Modifier and Type Method and Description
static AbstractStepMessageMap of(Map<String, Object> arg, SchemaConfiguration configuration)
Object description()
String discriminator()
Object sequenceNumber()
Object getAdditionalProperty(String name)
provides type safety for additional properties

Input Map Keys

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

Discriminator

public static class Discriminator
extends StringJsonSchema

A schema class that validates payloads

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

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