Class LicenseReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.license.LicenseReader
-
public class LicenseReader extends Object
This reads the License from annotations or json- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
- licenseObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-