Annotation Type License


  • @Target(ANNOTATION_TYPE)
    @Retention(RUNTIME)
    public @interface License
    License metadata available within the info section of a Swagger definition, see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#licenseObject
    Since:
    1.5.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String name
      The name of the license.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String url
      An optional URL for the license.
    • Element Detail

      • name

        String name
        The name of the license.
        Returns:
        the name of the license
      • url

        String url
        An optional URL for the license.
        Returns:
        an optional URL for the license.
        Default:
        ""