org.openapijsonschematools.client.components.schemas.GmFruit.java public class GmFruit
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 | GmFruit.GmFruit1 schema class |
| static class | GmFruit.GmFruitMapBuilder builder for Map payloads |
| static class | GmFruit.GmFruitMap output class for Map payloads |
| static class | GmFruit.Color schema class |
public static class GmFruit1
extends JsonSchema
A schema class that validates payloads
| Modifier and Type | Field and Description |
|---|---|
| Map<String, Class<? extends JsonSchema>> | properties = Map.ofEntries( new PropertyEntry("color", Color.class)) ) |
| List<Class<? extends JsonSchema>> | anyOf = List.of( Apple.Apple1.class, Banana.Banana1.class ) |
| 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) |
| GmFruitMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
| FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public class GmFruitMapBuilder
builder for Map<String, @Nullable Object>
A class that builds the Map input type
| Constructor and Description |
|---|
| GmFruitMapBuilder() Creates a builder that contains an empty map |
| Modifier and Type | Method and Description |
|---|---|
| Map<String, @Nullable Object> | build() Returns map input that should be used with Schema.validate |
| GmFruitMapBuilder | color(String value) |
| GmFruitMapBuilder | additionalProperty(String key, Void value) |
| GmFruitMapBuilder | additionalProperty(String key, boolean value) |
| GmFruitMapBuilder | additionalProperty(String key, String value) |
| GmFruitMapBuilder | additionalProperty(String key, int value) |
| GmFruitMapBuilder | additionalProperty(String key, float value) |
| GmFruitMapBuilder | additionalProperty(String key, long value) |
| GmFruitMapBuilder | additionalProperty(String key, double value) |
| GmFruitMapBuilder | additionalProperty(String key, List<?> value) |
| GmFruitMapBuilder | additionalProperty(String key, Map<String, ?> value) |
public static class GmFruitMap
extends FrozenMap<String, @Nullable Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static GmFruitMap | of(Map<String, ? extends @Nullable Object> arg, SchemaConfiguration configuration) |
| String | color() [optional] |
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
public static class Color
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |