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

Latest commit

 

History

History
141 lines (113 loc) · 6.18 KB

File metadata and controls

141 lines (113 loc) · 6.18 KB

Name

org.openapijsonschematools.client.components.schemas.Name.java public class Name

A class that contains necessary nested

  • schema classes (which validate payloads), extends JsonSchema
  • classes to store validated map payloads, extends FrozenMap
  • classes to build inputs for map payloads

Nested Class Summary

Modifier and Type Class and Description
static class Name.Name1
schema class
static class Name.NameMapBuilder1
builder for Map payloads
static class Name.NameMap
output class for Map payloads
static class Name.Property
schema class
static class Name.SnakeCase
schema class
static class Name.Name2
schema class

Name1

public static class Name1
extends JsonSchema

A schema class that validates payloads

Description

Model for testing model name same as property name

Field Summary

Modifier and Type Field and Description
Map<String, Class<? extends JsonSchema>> properties = Map.ofEntries(
    new PropertyEntry("name", Name2.class)),
    new PropertyEntry("snake_case", SnakeCase.class)),
    new PropertyEntry("property", Property.class))
)
Set required = Set.of(
    "name"
)

Method Summary

Modifier and Type Method and Description
String validate(String arg, SchemaConfiguration configuration)
Void validate(Void arg, SchemaConfiguration configuration)
int validate(int arg, SchemaConfiguration configuration)
long validate(long arg, SchemaConfiguration configuration)
float validate(float arg, SchemaConfiguration configuration)
double validate(double arg, SchemaConfiguration configuration)
boolean validate(boolean arg, SchemaConfiguration configuration)
NameMap validate(Map<?, ?> arg, SchemaConfiguration configuration)
FrozenList<@Nullable Object> validate(List<?> arg, SchemaConfiguration configuration)
@Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration)

NameMap0Builder

public class NameMap0Builder
builder for Map<String, @Nullable Object>

A class that builds the Map input type

Constructor Summary

Constructor and Description
NameMap0Builder(Map<String, @Nullable Object> instance)
Creates a builder that contains the passed instance

Method Summary

Modifier and Type Method and Description
Map<String, @Nullable Object> build()
Returns map input that should be used with Schema.validate
NameMap0Builder snake_case(int value)
NameMap0Builder snake_case(float value)
NameMap0Builder property(String value)
NameMap0Builder additionalProperty(String key, Void value)
NameMap0Builder additionalProperty(String key, boolean value)
NameMap0Builder additionalProperty(String key, String value)
NameMap0Builder additionalProperty(String key, int value)
NameMap0Builder additionalProperty(String key, float value)
NameMap0Builder additionalProperty(String key, long value)
NameMap0Builder additionalProperty(String key, double value)
NameMap0Builder additionalProperty(String key, List<?> value)
NameMap0Builder additionalProperty(String key, Map<String, ?> value)

NameMapBuilder1

public class NameMapBuilder1
builder for Map<String, @Nullable Object>

A class that builds the Map input type

Constructor Summary

Constructor and Description
NameMapBuilder1()
Creates a builder that contains an empty map

Method Summary

Modifier and Type Method and Description
NameMap0Builder name(int value)
NameMap0Builder name(float value)

NameMap

public static class NameMap
extends FrozenMap<String, @Nullable Object>

A class to store validated Map payloads

Method Summary

Modifier and Type Method and Description
static NameMap of(Map<String, ? extends @Nullable Object> arg, SchemaConfiguration configuration)
Number name()
value must be a 32 bit integer
Number snake_case()
[optional] value must be a 32 bit integer
String property()
[optional]
@Nullable Object getAdditionalProperty(String name)
provides type safety for additional properties

Property

public static class Property
extends StringJsonSchema

A schema class that validates payloads

Description

this is a reserved python keyword

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

SnakeCase

public static class SnakeCase
extends Int32JsonSchema

A schema class that validates payloads

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

Name2

public static class Name2
extends Int32JsonSchema

A schema class that validates payloads

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

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