Status of "ref"?
- From:
- Jens Hübel
- Date:
- 2011-01-20 @ 13:58
Hi all,
I would like to get a better understanding what the status of references
in Orderly currently is. The current spec mentions this still as a ToDo.
For our attempt to specify a JSON-Schema for the CMIS Browser Binding at
OASIS such a mechanism would be very useful as we have many repeating and
nested parts in our proposal. Are there any plans to get references into
the spec?
To me it is also unclear how this is supposed to work. If I have a ref
type specifier pointing to another element then I would also need a
mechanism to name the elements of a schema so that they can be referenced.
I believe that JSON-Schema has an "id" element for such purposes.
What I have in mind would be something like this (repositoryCapabilities
are a sub-element in repositoryInfo):
object {
id
"http://docs.oasis-open.org/ns/cmis/browser/201103/repositoryCapabilities";
string capabilityACL ["none", "discover", "manage"];
boolean capabilityAllVersionsSearchable;
...
}*;
object {
id "http://docs.oasis-open.org/ns/cmis/browser/201103/repositoryInfo"
string repositoryId;
string repositoryName;
string repositoryDescription;
...
ref
"http://docs.oasis-open.org/ns/cmis/browser/201103/repositoryCapabilities"
capabilities;
...
}*;
Any help would be appreciated what the recommended way is how to deal with this.
Thanks Jens.