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

Latest commit

 

History

History
51 lines (41 loc) · 2.57 KB

File metadata and controls

51 lines (41 loc) · 2.57 KB

NullableShape

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

A class that contains necessary nested

  • schema classes (which validate payloads), extends JsonSchema

Nested Class Summary

Modifier and Type Class and Description
static class NullableShape.NullableShape1
schema class
static class NullableShape.Schema2
schema class

NullableShape1

public static class NullableShape1
extends JsonSchema

A schema class that validates payloads

Description

The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0)

Field Summary

Modifier and Type Field and Description
List<Class<? extends JsonSchema>> oneOf = List.of(
    Triangle.Triangle1.class,
    Quadrilateral.Quadrilateral1.class,
    Schema2.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)
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)

Schema2

public static class Schema2
extends NullJsonSchema

A schema class that validates payloads

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

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