org.openapijsonschematools.components.schemas.MixedPropertiesAndAdditionalPropertiesClass.java public class MixedPropertiesAndAdditionalPropertiesClass
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 | MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1 schema class |
| static class | MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMap output class for Map payloads |
| static class | MixedPropertiesAndAdditionalPropertiesClass.MapSchema schema class |
| static class | MixedPropertiesAndAdditionalPropertiesClass.MapMap output class for Map payloads |
| static class | MixedPropertiesAndAdditionalPropertiesClass.DateTime schema class |
| static class | MixedPropertiesAndAdditionalPropertiesClass.UuidSchema schema class |
public static class MixedPropertiesAndAdditionalPropertiesClass1
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("uuid", UuidSchema.class)), new PropertyEntry("dateTime", DateTime.class)), new PropertyEntry("map", MapSchema.class)) ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static MixedPropertiesAndAdditionalPropertiesClassMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class MixedPropertiesAndAdditionalPropertiesClassMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static MixedPropertiesAndAdditionalPropertiesClassMap | of(Map<String, Object> arg, SchemaConfiguration configuration) |
| String | dateTime() [optional] value must conform to RFC-3339 date-time |
| Object | get(String key) This schema has invalid Java names so this method must be used when you access instance["uuid"], instance["map"], |
| Object | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| uuid | String | [optional] value must be a uuid | |
| dateTime | String | [optional] value must conform to RFC-3339 date-time | |
| map | Map<String, Map<String, Object>> | [optional] | |
| anyStringName | Object | any string name can be used but the value must be the correct type | [optional] |
public static class MapSchema
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("additionalProperties", new AdditionalPropertiesValidator(Animal.Animal1.class) )); |
| Modifier and Type | Method and Description |
|---|---|
| static MapMap | validate(Map<String, Map<String, Object>> arg, SchemaConfiguration configuration) |
public static class MapMap
extends FrozenMap<String, Animal.AnimalMap>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static MapMap | of(Map<String, Map<String, Object>> arg, SchemaConfiguration configuration) |
| Animal.AnimalMap | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| anyStringName | Map<String, Object> | any string name can be used but the value must be the correct type | [optional] |
public static class DateTime
extends DateTimeJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.schemas.DateTimeJsonSchema |
|---|
| validate |
public static class UuidSchema
extends UuidJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.schemas.UuidJsonSchema |
|---|
| validate |