Skip to content

Commit 7302ecc

Browse files
author
Peter Amstutz
committed
Make "location" field optional when "listing" is provided.
1 parent 63dcbdc commit 7302ecc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

draft-4/Process.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ $graph:
211211
_type: "@vocab"
212212
doc: Must be `Directory` to indicate this object describes a Directory.
213213
- name: location
214-
type: string
214+
type: string?
215215
doc: |
216216
A URI that identifies the directory resource. This may be a relative
217217
reference, in which case it must be resolved using the base URI of the
@@ -222,6 +222,10 @@ $graph:
222222
unsupported protocol, access denied, or other issue) it must signal an
223223
error.
224224
225+
If the `location' field is not provided, the `listing` field must be
226+
provided. The implementation must generate an internal identifier for
227+
the `location` field.
228+
225229
If the `path` field is provided but the `location` field is not, an
226230
implementation may assign the value of the `path` field to `location`,
227231
then follow the rules above.

0 commit comments

Comments
 (0)