io.kestra.core.models.annotations.Example Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of model Show documentation
Show all versions of model Show documentation
The modern, scalable orchestrator & scheduler open source platform
package io.kestra.core.models.annotations;
import java.lang.annotation.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Documented
@Inherited
@Retention(RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Repeatable(Examples.class)
public @interface Example {
/**
* @return The short description of current element
*/
String title() default "";
/**
* @return The code of current element
*/
String[] code() default "";
/**
* @return The language of current element
*/
String lang() default "yaml";
/**
* @return If the example is full (in this case, don't auto add type and id property
*/
boolean full() default false;
}