Annotation Type License
-
@Target({}) @Retention(RUNTIME) public @interface License
The annotation may be used inInfo.license()
to define a license for the OpenAPI spec.- See Also:
- License (OpenAPI specification),
OpenAPIDefinition
,Info
-
-
Element Detail
-
name
String name
The license name used for the API.- Returns:
- the name of the license
- Default:
- ""
-
-
-
url
String url
A URL to the license used for the API. MUST be in the format of a URL.- Returns:
- the URL of the license
- Default:
- ""
-
-
-
extensions
Extension[] extensions
The list of optional extensions- Returns:
- an optional array of extensions
- Default:
- {}
-
-