@@ -84,7 +84,7 @@ $graph:
84
84
URI resolution and JSON-LD context generation.
85
85
fields :
86
86
- name : _id
87
- type : ["null", string]
87
+ type : string?
88
88
jsonldPredicate :
89
89
_id : sld:_id
90
90
_type : " @id"
@@ -93,7 +93,7 @@ $graph:
93
93
The predicate URI that this field corresponds to.
94
94
Corresponds to JSON-LD `@id` directive.
95
95
- name : _type
96
- type : ["null", string]
96
+ type : string?
97
97
doc : |
98
98
The context type hint, corresponds to JSON-LD `@type` directive.
99
99
@@ -106,32 +106,32 @@ $graph:
106
106
resolved using the vocabulary resolution rules.
107
107
108
108
- name : _container
109
- type : ["null", string]
109
+ type : string?
110
110
doc : |
111
111
Structure hint, corresponds to JSON-LD `@container` directive.
112
112
- name : identity
113
- type : ["null", boolean]
113
+ type : boolean?
114
114
doc : |
115
115
If true and `_type` is `@id` this indicates that the parent field must
116
116
be resolved according to identity resolution rules instead of link
117
117
resolution rules. In addition, the field value is considered an
118
118
assertion that the linked value exists; absence of an object in the loaded document
119
119
with the URI is not an error.
120
120
- name : noLinkCheck
121
- type : ["null", boolean]
121
+ type : boolean?
122
122
doc : |
123
123
If true, this indicates that link validation traversal must stop at
124
124
this field. This field (it is is a URI) or any fields under it (if it
125
125
is an object or array) are not subject to link checking.
126
126
- name : mapSubject
127
- type : ["null", string]
127
+ type : string?
128
128
doc : |
129
129
If the value of the field is a JSON object, it must be transformed
130
130
into an array of JSON objects, where each key-value pair from the
131
131
source JSON object is a list item, the list items must be JSON objects,
132
132
and the key is assigned to the field specified by `mapSubject`.
133
133
- name : mapPredicate
134
- type : ["null", string]
134
+ type : string?
135
135
doc : |
136
136
Only applies if `mapSubject` is also provided. If the value of the
137
137
field is a JSON object, it is transformed as described in `mapSubject`,
@@ -140,9 +140,7 @@ $graph:
140
140
field specified by `mapSubject` and the value assigned to the field
141
141
specified by `mapPredicate`.
142
142
- name : refScope
143
- type :
144
- - " null"
145
- - int
143
+ type : int?
146
144
doc : |
147
145
If the field contains a relative reference, it must be resolved by
148
146
searching for valid document references in each successive parent scope
@@ -157,7 +155,7 @@ $graph:
157
155
`#foo/foo` and the `#foo`. The last scope searched must be the top
158
156
level scope before determining if the identifier cannot be resolved.
159
157
- name : typeDSL
160
- type : ["null", boolean]
158
+ type : boolean?
161
159
doc : |
162
160
Field must be expanded based on the the Schema Salad type DSL.
163
161
@@ -204,7 +202,7 @@ $graph:
204
202
jsonldPredicate : " sld:doc"
205
203
206
204
- name : docParent
207
- type : ["null", string]
205
+ type : string?
208
206
doc : |
209
207
Hint to indicate that during documentation generation, documentation
210
208
for this type should appear in a subsection under `docParent`.
@@ -226,7 +224,7 @@ $graph:
226
224
_type : " @id"
227
225
228
226
- name : docAfter
229
- type : ["null", string]
227
+ type : string?
230
228
doc : |
231
229
Hint to indicate that during documentation generation, documentation
232
230
for this type should appear after the `docAfter` section at the same
@@ -253,7 +251,7 @@ $graph:
253
251
jsonldPredicate : " sld:jsonldPredicate"
254
252
255
253
- name : documentRoot
256
- type : ["null", boolean]
254
+ type : boolean?
257
255
doc : |
258
256
If true, indicates that the type is a valid at the document root. At
259
257
least one type in a schema must be tagged with `documentRoot: true`.
@@ -270,7 +268,7 @@ $graph:
270
268
The name of the field
271
269
272
270
- name : doc
273
- type : ["null", string]
271
+ type : string?
274
272
doc : |
275
273
A documentation string for this field
276
274
jsonldPredicate : " sld:doc"
@@ -344,7 +342,7 @@ $graph:
344
342
specializeTo : " #SaladRecordField"
345
343
fields :
346
344
- name : abstract
347
- type : ["null", boolean]
345
+ type : boolean?
348
346
doc : |
349
347
If true, this record is abstract and may be used as a base for other
350
348
records, but is not valid on its own.
0 commit comments