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
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 |
public static class Name1
extends JsonSchema
A schema class that validates payloads
Model for testing model name same as property name
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" ) |
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) |
public class NameMap0Builder
builder for Map<String, @Nullable Object>
A class that builds the Map input type
Constructor and Description |
---|
NameMap0Builder(Map<String, @Nullable Object> instance) Creates a builder that contains the passed instance |
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) |
public class NameMapBuilder1
builder for Map<String, @Nullable Object>
A class that builds the Map input type
Constructor and Description |
---|
NameMapBuilder1() Creates a builder that contains an empty map |
Modifier and Type | Method and Description |
---|---|
NameMap0Builder | name(int value) |
NameMap0Builder | name(float value) |
public static class NameMap
extends FrozenMap<String, @Nullable Object>
A class to store validated Map payloads
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 |
public static class Property
extends StringJsonSchema
A schema class that validates payloads
this is a reserved python keyword
Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
---|
validate |
public static class SnakeCase
extends Int32JsonSchema
A schema class that validates payloads
Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema |
---|
validate |
public static class Name2
extends Int32JsonSchema
A schema class that validates payloads
Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema |
---|
validate |