ComponentRefSchemaStringWithValidation.java
public class ComponentRefSchemaStringWithValidation
A class that contains necessary nested parameter classes
- a class that implements MediaType to store content schema info
- a class that extends SchemaHeader/ContentHeader and is used to deserialize the parameter value
Modifier and Type | Class and Description |
---|---|
record | ComponentRefSchemaStringWithValidation.ApplicationjsonMediaType record storing schema + encoding for a specific contentType |
static class | ComponentRefSchemaStringWithValidation.ComponentRefSchemaStringWithValidation1 class that deserializes a parameter |
public record ApplicationjsonMediaType
implements [MediaType<ApplicationjsonSchema.ApplicationjsonSchema1, Void>
class storing schema info for a specific contentType
Constructor and Description |
---|
ApplicationjsonMediaType() Creates an instance |
Modifier and Type | Method and Description |
---|---|
ApplicationjsonSchema.ApplicationjsonSchema1 | schema() the schema for this MediaType |
Void | encoding() the encoding info |
public static class ComponentRefSchemaStringWithValidation1 extends ContentParameter
a class that deserializes a parameter value
Constructor and Description |
---|
ComponentRefSchemaStringWithValidation1() Creates an instance |
Modifier and Type | Field and Description |
---|---|
String | name = "CRSstringWithValidation" the parameter name |
ParameterInType | inType = ParameterInType.PATH the parameter in value |
boolean | required = true whether the parameter is required |
@Nullable Boolean explode | null |
@Nullable ParameterStyle | null |
@Nullable Boolean allowReserved | false |
AbstractMap.SimpleEntry<String, ApplicationjsonMediaType> | content = new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) the contentType to schema info |
Modifier and Type | Method and Description |
---|---|
Map<String, String> | serialize(@Nullable Object inData, boolean validate, SchemaConfiguration configuration) deserializes the parameter value |
[Back to top] [Back to Component Parameters] [Back to README]