public class ExampleReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
parseValue(AnnotationScannerContext context,
String value)
Reads an example value and decode it, the parsing is delegated to the extensions
currently set in the scanner.
|
static Map<String,org.eclipse.microprofile.openapi.models.examples.Example> |
readExamples(AnnotationScannerContext context,
org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Example annotations.
|
static Map<String,org.eclipse.microprofile.openapi.models.examples.Example> |
readExamples(com.fasterxml.jackson.databind.JsonNode node)
Reads the
Example OpenAPI nodes. |
public static Map<String,org.eclipse.microprofile.openapi.models.examples.Example> readExamples(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
context - the scanning contextannotationValue - map of @ExampleObject annotationspublic static Map<String,org.eclipse.microprofile.openapi.models.examples.Example> readExamples(com.fasterxml.jackson.databind.JsonNode node)
Example OpenAPI nodes.node - map of json nodespublic static Object parseValue(AnnotationScannerContext context, String value)
context - the scanning contextvalue - the value to decodeCopyright © 2018–2021. All rights reserved.