org.openapijsonschematools.client.components.schemas.Capitalization.java public class Capitalization
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 | Capitalization.Capitalization1 schema class |
| static class | Capitalization.CapitalizationMap output class for Map payloads |
| static class | Capitalization.ATTNAME schema class |
| static class | Capitalization.SCAETHFlowPoints schema class |
| static class | Capitalization.CapitalSnake schema class |
| static class | Capitalization.SmallSnake schema class |
| static class | Capitalization.CapitalCamel schema class |
| static class | Capitalization.SmallCamel schema class |
public static class Capitalization1
extends JsonSchema
A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.MapMaker;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
import java.util.Arrays;
import java.util.List;
import java.util.AbstractMap;
static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone());
// Map validation
Capitalization.CapitalizationMap validatedPayload =
Capitalization.Capitalization1.validate(
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"smallCamel",
"a"
),
new AbstractMap.SimpleEntry<>(
"CapitalCamel",
"a"
),
new AbstractMap.SimpleEntry<>(
"small_Snake",
"a"
),
new AbstractMap.SimpleEntry<>(
"Capital_Snake",
"a"
),
new AbstractMap.SimpleEntry<>(
"SCA_ETH_Flow_Points",
"a"
),
new AbstractMap.SimpleEntry<>(
"ATT_NAME",
"a"
)
),
configuration
);
| 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("smallCamel", SmallCamel.class)), new PropertyEntry("CapitalCamel", CapitalCamel.class)), new PropertyEntry("small_Snake", SmallSnake.class)), new PropertyEntry("Capital_Snake", CapitalSnake.class)), new PropertyEntry("SCA_ETH_Flow_Points", SCAETHFlowPoints.class)), new PropertyEntry("ATT_NAME", ATTNAME.class)) ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static CapitalizationMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class CapitalizationMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static CapitalizationMap | of(Map<String, Object> arg, SchemaConfiguration configuration) |
| String | smallCamel() [optional] |
| String | CapitalCamel() [optional] |
| String | small_Snake() [optional] |
| String | Capital_Snake() [optional] |
| String | SCA_ETH_Flow_Points() [optional] |
| String | ATT_NAME() [optional] |
| Object | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| smallCamel | String | [optional] | |
| CapitalCamel | String | [optional] | |
| small_Snake | String | [optional] | |
| Capital_Snake | String | [optional] | |
| SCA_ETH_Flow_Points | String | [optional] | |
| ATT_NAME | String | Name of the pet | |
| [optional] | |||
| anyStringName | Object | any string name can be used but the value must be the correct type | [optional] |
public static class ATTNAME
extends StringJsonSchema
A schema class that validates payloads
Name of the pet
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class SCAETHFlowPoints
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class CapitalSnake
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class SmallSnake
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class CapitalCamel
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class SmallCamel
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |