org.openapijsonschematools.client.components.schemas.IntegerEnumBig.java public class IntegerEnumBig
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
| Modifier and Type | Class and Description |
|---|---|
| static class | IntegerEnumBig.IntegerEnumBig1 schema class |
public static class IntegerEnumBig1
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.MapMaker;
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 = IntegerEnumBig.IntegerEnumBig1.validate(
10,
configuration
);
| Modifier and Type | Field and Description |
|---|---|
| static LinkedHashMap<String, KeywordValidator> | keywordToValidator new LinkedHashMap<>(Map.ofEntries( new KeywordEntry("type", new TypeValidator(Set.of( Integer.class, Long.class, Float.class, Double.class ))), new KeywordEntry("enum", new EnumValidator(Set.of( 10, 11, 12))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static long | validate(long arg, SchemaConfiguration configuration) |