Skip to content

Commit 4c78cca

Browse files
committed
Update GenericSchemaFeatureInput.java
1 parent 7ea0fe6 commit 4c78cca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/saasquatch/jsonschemainferrer/GenericSchemaFeatureInput.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.fasterxml.jackson.databind.JsonNode;
44
import com.fasterxml.jackson.databind.node.ObjectNode;
5+
import com.saasquatch.jsonschemainferrer.annotations.Beta;
56
import java.util.Collection;
67
import javax.annotation.Nonnull;
78
import javax.annotation.Nullable;
@@ -31,7 +32,7 @@ public final class GenericSchemaFeatureInput {
3132

3233
/**
3334
* @return The current schema. Note that {@link GenericSchemaFeature}s are not supposed to mutate
34-
* the schema.
35+
* the schema.
3536
*/
3637
@Nonnull
3738
public ObjectNode getSchema() {
@@ -63,9 +64,13 @@ public SpecVersion getSpecVersion() {
6364
}
6465

6566
/**
67+
* This method is marked as {@link Beta @Beta} because it may not be perfect. The algorithm for
68+
* generating JSON path can be found at {@link JunkDrawer#escapeSingleQuoteString}.
69+
*
6670
* @return The JSON path of the current traversal.
6771
*/
6872
@Nonnull
73+
@Beta
6974
public String getPath() {
7075
return path;
7176
}

0 commit comments

Comments
 (0)