Skip to content

Commit 088dfa5

Browse files
committed
improve javadoc, mark as public spi
1 parent 751c367 commit 088dfa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/graphql/schema/Coercing.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package graphql.schema;
22

33

4+
import graphql.PublicSpi;
5+
6+
@PublicSpi
47
public interface Coercing<I, O> {
58

69

@@ -25,7 +28,7 @@ public interface Coercing<I, O> {
2528
* Called to convert a AST node
2629
*
2730
* @param input is never null
28-
* @return null if not possible/invalid
31+
* @return A null value indicates that the literal is not valid. See {@link graphql.validation.ValidationUtil#isValidLiteralValue}
2932
*/
3033
I parseLiteral(Object input);
3134
}

0 commit comments

Comments
 (0)