Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
60 lines (46 loc) · 3.06 KB

ComponentRefSchemaStringWithValidation.md

File metadata and controls

60 lines (46 loc) · 3.06 KB

ComponentRefSchemaStringWithValidation

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

Nested Class Summary

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

ApplicationjsonMediaType

public record ApplicationjsonMediaType
implements [MediaType<ApplicationjsonSchema.ApplicationjsonSchema1, Void>

class storing schema info for a specific contentType

Constructor Summary

Constructor and Description
ApplicationjsonMediaType()
Creates an instance

Method Summary

Modifier and Type Method and Description
ApplicationjsonSchema.ApplicationjsonSchema1 schema()
the schema for this MediaType
Void encoding()
the encoding info

ComponentRefSchemaStringWithValidation1

public static class ComponentRefSchemaStringWithValidation1 extends ContentParameter

a class that deserializes a parameter value

Constructor Summary

Constructor and Description
ComponentRefSchemaStringWithValidation1()
Creates an instance

Field Summary

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

Method Summary

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]