org.openapijsonschematools.components.schemas.ObjectWithDecimalProperties.java public class ObjectWithDecimalProperties
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 | ObjectWithDecimalProperties.ObjectWithDecimalProperties1 schema class |
| static class | ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap output class for Map payloads |
| static class | ObjectWithDecimalProperties.Width schema class |
public static class ObjectWithDecimalProperties1
extends JsonSchema
A schema class that validates payloads
| 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("length", DecimalPayload.DecimalPayload1.class), new PropertyEntry("width", Width.class)), new PropertyEntry("cost", Money.Money1.class) ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static ObjectWithDecimalPropertiesMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class ObjectWithDecimalPropertiesMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static ObjectWithDecimalPropertiesMap | of(Map<String, Object> arg, SchemaConfiguration configuration) |
| String | length() [optional] |
| String | width() [optional] value must be int or float numeric |
| Money.MoneyMap | cost() [optional] |
| Object | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| length | String | [optional] | |
| width | String | [optional] value must be int or float numeric | |
| cost | Map<String, Object> | [optional] | |
| anyStringName | Object | any string name can be used but the value must be the correct type | [optional] |
public static class Width
extends DecimalJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.schemas.DecimalJsonSchema |
|---|
| validate |