Class ParameterReader
java.lang.Object
io.smallrye.openapi.runtime.io.parameter.ParameterReader
Reading the Parameter annotation
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.microprofile.openapi.models.parameters.ParameterreadParameter(com.fasterxml.jackson.databind.JsonNode node) Reads aParameterOpenAPI node.static org.eclipse.microprofile.openapi.models.parameters.ParameterreadParameter(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a Parameter annotation into a model.readParameterList(com.fasterxml.jackson.databind.JsonNode node) Reads aParameterOpenAPI node.readParameters(com.fasterxml.jackson.databind.JsonNode node) Reads theParameterOpenAPI nodes.readParameters(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Parameter annotations.readParametersList(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Parameter annotations.
-
Method Details
-
readParametersList
public static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>> readParametersList(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Parameter annotations.- Parameters:
context- the scanning contextannotationValue- Map of @Parameter annotations- Returns:
- List of Parameter model
-
readParameterList
public static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>> readParameterList(com.fasterxml.jackson.databind.JsonNode node) Reads aParameterOpenAPI node.- Parameters:
node- json list- Returns:
- List of Parameter model
-
readParameters
public static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter> readParameters(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Parameter annotations.- Parameters:
context- the scanning contextannotationValue- Map of @Parameter annotations- Returns:
- Map of Parameter model
-
readParameters
public static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter> readParameters(com.fasterxml.jackson.databind.JsonNode node) Reads theParameterOpenAPI nodes.- Parameters:
node- json map of Parameters- Returns:
- Map of Parameter model
-
readParameter
public static org.eclipse.microprofile.openapi.models.parameters.Parameter readParameter(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a Parameter annotation into a model.- Parameters:
context- the scanning contextannotationInstance- @Parameter model- Returns:
- Parameter model
-
readParameter
public static org.eclipse.microprofile.openapi.models.parameters.Parameter readParameter(com.fasterxml.jackson.databind.JsonNode node) Reads aParameterOpenAPI node.- Parameters:
node- the json object- Returns:
- Parameter model
-