org.openapijsonschematools.client.components.schemas.ApiResponseSchema.java public class ApiResponseSchema
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 | ApiResponseSchema.ApiResponseSchema1 schema class |
| static class | ApiResponseSchema.ApiResponseMap output class for Map payloads |
| static class | ApiResponseSchema.Message schema class |
| static class | ApiResponseSchema.Type schema class |
| static class | ApiResponseSchema.Code schema class |
public static class ApiResponseSchema1
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(FrozenMap.class))), new KeywordEntry("properties", new PropertiesValidator(Map.ofEntries( new PropertyEntry("code", Code.class)), new PropertyEntry("type", Type.class)), new PropertyEntry("message", Message.class)) ))) )); |
| Modifier and Type | Method and Description |
|---|---|
| static ApiResponseMap | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
public static class ApiResponseMap
extends FrozenMap<String, Object>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static ApiResponseMap | of(Map<String, Object> arg, SchemaConfiguration configuration) |
| int | code() [optional] value must be a 32 bit integer |
| String | type() [optional] |
| String | message() [optional] |
| Object | getAdditionalProperty(String name) provides type safety for additional properties |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| code | int | [optional] value must be a 32 bit integer | |
| type | String | [optional] | |
| message | String | [optional] | |
| anyStringName | Object | any string name can be used but the value must be the correct type | [optional] |
public static class Message
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class Type
extends StringJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
|---|
| validate |
public static class Code
extends Int32JsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema |
|---|
| validate |