DocumentIdentifier Type
The schema types this as `string | { uri: string }` - either a path or a document URI - so it is a union here rather than a record with two optional halves. It needs `DocumentIdentifierConverter` to serialise, which `ProtoJson.options` registers; the converter cannot be attached here as an attribute because it is declared against this type and would close the dependency loop.
Union cases
| Union case |
Description
|
Full Usage:
FileName fileName
Parameters:
string
|
A file path, written as a bare JSON string.
|
Full Usage:
Uri uri
Parameters:
string
|
A document URI, written as `{ "uri": ... }`.
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsFileName
Returns: bool
|
|
Full Usage:
this.IsUri
Returns: bool
|
|