io.smallrye.graphql.api.Deprecated Maven / Gradle / Ivy
package io.smallrye.graphql.api;
import static io.smallrye.graphql.api.DirectiveLocation.ARGUMENT_DEFINITION;
import static io.smallrye.graphql.api.DirectiveLocation.ENUM_VALUE;
import static io.smallrye.graphql.api.DirectiveLocation.FIELD_DEFINITION;
import static io.smallrye.graphql.api.DirectiveLocation.INPUT_FIELD_DEFINITION;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.eclipse.microprofile.graphql.Description;
@Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD })
@Directive(on = {
FIELD_DEFINITION,
ARGUMENT_DEFINITION,
INPUT_FIELD_DEFINITION,
ENUM_VALUE
})
@Description("Marks the field, argument, input field or enum value as deprecated")
@Retention(RetentionPolicy.RUNTIME)
public @interface Deprecated {
@Description("The reason for the deprecation")
String reason() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy