org.openapijsonschematools.client.components.schemas.ShapeOrNull.java public class ShapeOrNull
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
Modifier and Type | Class and Description |
---|---|
static class | ShapeOrNull.ShapeOrNull1 schema class |
static class | ShapeOrNull.Schema0 schema class |
public static class ShapeOrNull1
extends JsonSchema
A schema class that validates payloads
The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1.
Modifier and Type | Field and Description |
---|---|
List<Class<? extends JsonSchema>> | oneOf = List.of( Schema0.class, Triangle.Triangle1.class, Quadrilateral.Quadrilateral1.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) |
FrozenMap<String, @Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public static class Schema0
extends NullJsonSchema
A schema class that validates payloads
Methods Inherited from class org.openapijsonschematools.client.schemas.NumberJsonSchema |
---|
validate |