We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1ee83 commit 8f28b72Copy full SHA for 8f28b72
openapi-parser/src/main/java/io/openapiparser/Properties.java
@@ -12,6 +12,7 @@
12
import io.openapiparser.support.Experimental;
13
import org.checkerframework.checker.nullness.qual.Nullable;
14
15
+import java.net.URI;
16
import java.util.*;
17
18
import static io.openapiprocessor.jsonschema.support.Null.nonNull;
@@ -28,6 +29,16 @@ protected Properties (Context context, Bucket bucket) {
28
29
this.bucket = bucket;
30
}
31
32
+ /**
33
+ * Retrieves the document URI of the document in which the current object is defined.
34
+ *
35
+ * @return the URI of the document
36
+ */
37
+ @Experimental
38
+ public URI getDocumentUri() {
39
+ return bucket.getScope().getDocumentUri();
40
+ }
41
+
42
/* json pointer */
43
44
@Experimental
0 commit comments