io.swagger.v3.oas.annotations.extensions.ExtensionProperty Maven / Gradle / Ivy
package io.swagger.v3.oas.annotations.extensions;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* A name/value property within a OpenApi extension
*
* @see Extension
*/
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExtensionProperty {
/**
* The name of the property.
*
* @return the name of the property
*/
String name();
/**
* The value of the property.
*
* @return the value of the property
*/
String value();
/**
* If set to true, field `value` will be parsed and serialized as JSON/YAML
*
* @return the value of `parseValue` annotation field
*/
boolean parseValue() default false;
}