org.openapijsonschematools.client.components.schemas.IntegerMin15.java public class IntegerMin15
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
| Modifier and Type | Class and Description |
|---|---|
| static class | IntegerMin15.IntegerMin151 schema class |
public static class IntegerMin151
extends JsonSchema
A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.validation.MapUtils;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
import java.util.Arrays;
import java.util.List;
import java.util.AbstractMap;
static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone());
// long validation
long validatedPayload = IntegerMin15.IntegerMin151.validate(
1L,
configuration
);
| Modifier and Type | Field and Description |
|---|---|
| Set<Class<?>> | type = Set.of( Integer.class, Long.class, Float.class, Double.class ) |
| String | type = "int64"; |
| Number | minimum = 15 |
| Modifier and Type | Method and Description |
|---|---|
| long | validate(long arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
| [Back to top] [Back to Component Schemas] [Back to README] |