io.swagger.oas.annotations.extensions.Extension Maven / Gradle / Ivy
package io.swagger.oas.annotations.extensions;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* An optionally named list of extension properties.
*
*/
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Extension {
/**
* An option name for these extensions.
*
* @return an option name for these extensions - will be prefixed with "x-"
*/
String name() default "";
/**
* The extension properties.
*
* @return the actual extension properties
* @see ExtensionProperty
*/
ExtensionProperty[] properties();
}