org.openapijsonschematools.components.schemas.StringEnum.java public class StringEnum
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 | StringEnum.StringEnum1 schema class |
public static class StringEnum1
extends JsonSchema
A schema class that validates payloads
| Modifier and Type | Field and Description |
|---|---|
| static LinkedHashMap<String, KeywordValidator> | keywordToValidator new LinkedHashMap<>(Map.ofEntries( new KeywordEntry("type", new TypeValidator(Set.of( Void.class, String.class ))), new KeywordEntry("enum", new EnumValidator(Set.of( "placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline", null))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static Void | validate(Void arg, SchemaConfiguration configuration) |
| static String | validate(String arg, SchemaConfiguration configuration) |