public class MediaTypeReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.microprofile.openapi.models.media.MediaType |
readMediaType(AnnotationScannerContext context,
org.jboss.jandex.AnnotationInstance annotationInstance)
Reads a single Content annotation into a
MediaType model. |
static org.eclipse.microprofile.openapi.models.media.MediaType |
readMediaType(com.fasterxml.jackson.databind.JsonNode node)
Reads a
MediaType OpenAPI node. |
public static org.eclipse.microprofile.openapi.models.media.MediaType readMediaType(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
MediaType model.context - the scanning contextannotationInstance - @Content annotationpublic static org.eclipse.microprofile.openapi.models.media.MediaType readMediaType(com.fasterxml.jackson.databind.JsonNode node)
MediaType OpenAPI node.node - the json nodeCopyright © 2018–2021. All rights reserved.