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

Latest commit

 

History

History
111 lines (90 loc) · 5.72 KB

File metadata and controls

111 lines (90 loc) · 5.72 KB

Schema200Response

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

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 Schema200Response.Schema200Response1
schema class
static class Schema200Response.Schema200ResponseMapBuilder
builder for Map payloads
static class Schema200Response.Schema200ResponseMap
output class for Map payloads
static class Schema200Response.ClassSchema
schema class
static class Schema200Response.Name
schema class

Schema200Response1

public static class Schema200Response1
extends JsonSchema

A schema class that validates payloads

Description

model with an invalid class name for python, starts with a number

Field Summary

Modifier and Type Field and Description
Map<String, Class<? extends JsonSchema>> properties = Map.ofEntries(
    new PropertyEntry("name", Name.class)),
    new PropertyEntry("class", ClassSchema.class))
)

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)
Schema200ResponseMap validate(Map<?, ?> arg, SchemaConfiguration configuration)
FrozenList<@Nullable Object> validate(List<?> arg, SchemaConfiguration configuration)
@Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration)

Schema200ResponseMapBuilder

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

A class that builds the Map input type

Constructor Summary

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

Method Summary

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

Schema200ResponseMap

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

A class to store validated Map payloads

Method Summary

Modifier and Type Method and Description
static Schema200ResponseMap of(Map<String, ? extends @Nullable Object> arg, SchemaConfiguration configuration)
Number name()
[optional] value must be a 32 bit integer
@Nullable Object get(String key)
This schema has invalid Java names so this method must be used when you access instance["class"],
@Nullable Object getAdditionalProperty(String name)
provides type safety for additional properties

ClassSchema

public static class ClassSchema
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

Name

public static class Name
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]