Class ServerVariableReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.servervariable.ServerVariableReader
-
public class ServerVariableReader extends Object
Reading the ServerVariable annotation and json node- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
- serverVariableObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable>readServerVariables(com.fasterxml.jackson.databind.JsonNode node)Reads theServerVariableOpenAPI node.static Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable>readServerVariables(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)Reads an array of ServerVariable annotations, returning a newServerVariablemodel.
-
-
-
Method Detail
-
readServerVariables
public static Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> readServerVariables(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads an array of ServerVariable annotations, returning a newServerVariablemodel. The annotation value is an array of ServerVariable annotations.- Parameters:
annotationValue- an arrays of @ServerVariable annotations- Returns:
- a Map of Variable name and ServerVariable model
-
readServerVariables
public static Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> readServerVariables(com.fasterxml.jackson.databind.JsonNode node)
Reads theServerVariableOpenAPI node.- Parameters:
node- the json node- Returns:
- a Map of Variable name and ServerVariable model
-
-