Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
88 lines (68 loc) · 4.76 KB

File metadata and controls

88 lines (68 loc) · 4.76 KB

ObjectWithDifficultlyNamedProps

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

Nested Class Summary

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

ObjectWithDifficultlyNamedProps1

public static class ObjectWithDifficultlyNamedProps1
extends JsonSchema

A schema class that validates payloads

Description

model with properties that have invalid names for python

Field Summary

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"
    )))
));

Method Summary

Modifier and Type Method and Description
static ObjectWithDifficultlyNamedPropsMap validate(Map<String, Object> arg, SchemaConfiguration configuration)

ObjectWithDifficultlyNamedPropsMap

public static class ObjectWithDifficultlyNamedPropsMap
extends FrozenMap<String, Object>

A class to store validated Map payloads

Method Summary

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

Input Map Keys

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]

Schema123Number

public static class Schema123Number
extends IntJsonSchema

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.IntJsonSchema
validate

Schema123list

public static class Schema123list
extends StringJsonSchema

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema
validate

Specialpropertyname

public static class Specialpropertyname
extends Int64JsonSchema

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema
validate

[Back to top] [Back to Component Schemas] [Back to README]