Class LicenseReader
java.lang.Object
io.smallrye.openapi.runtime.io.license.LicenseReader
This reads the License from annotations or json
- 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.info.LicensereadLicense(com.fasterxml.jackson.databind.JsonNode node) Reads anLicenseOpenAPI node.static org.eclipse.microprofile.openapi.models.info.LicensereadLicense(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads an License annotation.
-
Method Details
-
readLicense
public static org.eclipse.microprofile.openapi.models.info.License readLicense(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads an License annotation.- Parameters:
annotationValue- the @License annotation- Returns:
- License model
-
readLicense
public static org.eclipse.microprofile.openapi.models.info.License readLicense(com.fasterxml.jackson.databind.JsonNode node) Reads anLicenseOpenAPI node.- Parameters:
node- the json node- Returns:
- License model
-