org.openapijsonschematools.components.schemas.AbstractStepMessage.java public class AbstractStepMessage
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
| 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 |
public static class AbstractStepMessage1
extends JsonSchema
A schema class that validates payloads
Abstract Step
| 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 ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static AbstractStepMessageMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class AbstractStepMessageMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| 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 |
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] |
public static class Discriminator
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.schemas.StringJsonSchema |
|---|
| validate |