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:
  • 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 an License OpenAPI node.
      Parameters:
      node - the json node
      Returns:
      License model