org.openapijsonschematools.client.components.schemas.ObjectWithDifficultlyNamedProps.java public class ObjectWithDifficultlyNamedProps
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 | ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1 schema class |
| static class | ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap output class for Map payloads |
| static class | ObjectWithDifficultlyNamedProps.Schema123Number schema class |
| static class | ObjectWithDifficultlyNamedProps.Schema123list schema class |
| static class | ObjectWithDifficultlyNamedProps.Specialpropertyname schema class |
public static class ObjectWithDifficultlyNamedProps1
extends JsonSchema
A schema class that validates payloads
model with properties that have invalid names for python
| 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("$special[property.name]", Specialpropertyname.class)), new PropertyEntry("123-list", Schema123list.class)), new PropertyEntry("123Number", Schema123Number.class)) ))), new KeywordEntry("required", new RequiredValidator(Set.of( "123-list" ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static ObjectWithDifficultlyNamedPropsMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class ObjectWithDifficultlyNamedPropsMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static ObjectWithDifficultlyNamedPropsMap | of(Map<String, Object> arg, SchemaConfiguration configuration) |
| Object | get(String key) This schema has invalid Java names so this method must be used when you access instance["123-list"], instance["$special[property.name]"], instance["123Number"], |
| Object | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| 123-list | String | ||
| $special[property.name] | long | [optional] value must be a 64 bit integer | |
| 123Number | long | [optional] | |
| anyStringName | Object | any string name can be used but the value must be the correct type | [optional] |
public static class Schema123Number
extends IntJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.IntJsonSchema |
|---|
| validate |
public static class Schema123list
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class Specialpropertyname
extends Int64JsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema |
|---|
| validate |