@jsonforms/examples 3.1.0-alpha.1 → 3.1.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/.eslintrc.js +29 -0
  2. package/.prettierrc.js +6 -0
  3. package/README.md +1 -1
  4. package/docs/assets/js/search.json +1 -1
  5. package/docs/globals.html +2074 -3228
  6. package/docs/index.html +0 -30
  7. package/lib/examples/1884.d.ts +8 -0
  8. package/lib/examples/additional-errors.d.ts +16 -1
  9. package/lib/examples/anyOf.d.ts +15 -2
  10. package/lib/examples/arrays.d.ts +13 -2
  11. package/lib/examples/arraysI18n.d.ts +52 -0
  12. package/lib/examples/dates.d.ts +115 -1
  13. package/lib/examples/enum.d.ts +16 -0
  14. package/lib/examples/generate-dynamic.d.ts +15 -0
  15. package/lib/examples/list-with-detail-primitives.d.ts +36 -0
  16. package/lib/examples/list-with-detail-registered.d.ts +55 -1
  17. package/lib/examples/list-with-detail.d.ts +191 -1
  18. package/lib/examples/nestedCategorization.d.ts +57 -0
  19. package/lib/examples/radioGroup.d.ts +42 -1
  20. package/lib/index.d.ts +8 -19
  21. package/lib/jsonforms-examples.cjs.js +2299 -2863
  22. package/lib/jsonforms-examples.cjs.js.map +1 -1
  23. package/lib/jsonforms-examples.esm.js +2288 -2869
  24. package/lib/jsonforms-examples.esm.js.map +1 -1
  25. package/package.json +13 -6
  26. package/rollup.config.js +12 -12
  27. package/src/example.ts +3 -3
  28. package/src/examples/1884.ts +52 -48
  29. package/src/examples/1948.ts +19 -19
  30. package/src/examples/additional-errors.ts +28 -25
  31. package/src/examples/allOf.ts +18 -18
  32. package/src/examples/anyOf-oneOf-allOf-resolve.ts +21 -21
  33. package/src/examples/anyOf.ts +42 -24
  34. package/src/examples/arrays-with-custom-element-label.ts +21 -21
  35. package/src/examples/arrays-with-detail-and-rule.ts +28 -28
  36. package/src/examples/arrays-with-detail.ts +21 -21
  37. package/src/examples/arrays-with-sorting.ts +35 -35
  38. package/src/examples/arrays.ts +40 -35
  39. package/src/examples/arraysI18n.ts +107 -0
  40. package/src/examples/{steppershownav.ts → categorization-stepper-nav-buttons.ts} +6 -6
  41. package/src/examples/{stepper.ts → categorization-stepper.ts} +5 -5
  42. package/src/examples/categorization.ts +119 -119
  43. package/src/examples/conditional-schema-compositions.ts +20 -20
  44. package/src/examples/config.ts +15 -15
  45. package/src/examples/control-options.ts +81 -82
  46. package/src/examples/dates.ts +34 -34
  47. package/src/examples/default.ts +22 -22
  48. package/src/examples/{multi-enum.ts → enum-multi.ts} +14 -14
  49. package/src/examples/enum.ts +65 -33
  50. package/src/examples/enumInArray.ts +10 -10
  51. package/src/examples/{dynamic.ts → generate-dynamic.ts} +10 -10
  52. package/src/examples/generate.ts +2 -2
  53. package/src/examples/generateUI.ts +2 -2
  54. package/src/examples/huge.ts +381 -377
  55. package/src/examples/i18n.ts +37 -28
  56. package/src/examples/if_then_else.ts +4 -4
  57. package/src/examples/layout.ts +29 -29
  58. package/src/examples/{booleanToggle.ts → list-with-detail-primitives.ts} +46 -33
  59. package/src/examples/list-with-detail-registered.ts +26 -26
  60. package/src/examples/list-with-detail.ts +82 -82
  61. package/src/examples/nestedArrays.ts +40 -35
  62. package/src/examples/nestedCategorization.ts +175 -0
  63. package/src/examples/numbers.ts +17 -17
  64. package/src/examples/object.ts +24 -24
  65. package/src/examples/onChange.ts +28 -22
  66. package/src/examples/oneOf-recursive.ts +15 -15
  67. package/src/examples/oneOf.ts +99 -96
  68. package/src/examples/oneOfArray.ts +20 -20
  69. package/src/examples/person.ts +35 -35
  70. package/src/examples/radioGroup.ts +52 -53
  71. package/src/examples/readonly.ts +14 -14
  72. package/src/examples/rule.ts +26 -26
  73. package/src/examples/ruleInheritance.ts +37 -34
  74. package/src/examples/scope.ts +26 -26
  75. package/src/examples/stringArray.ts +10 -10
  76. package/src/examples/text.ts +19 -19
  77. package/src/index.ts +11 -33
  78. package/src/register.ts +6 -3
  79. package/stats.html +2462 -329
  80. package/tsconfig.json +2 -6
  81. package/lib/examples/1169.d.ts +0 -24
  82. package/lib/examples/1220.d.ts +0 -4
  83. package/lib/examples/1253.d.ts +0 -16
  84. package/lib/examples/1254.d.ts +0 -21
  85. package/lib/examples/1645.d.ts +0 -68
  86. package/lib/examples/1779.d.ts +0 -1
  87. package/lib/examples/1996.d.ts +0 -31
  88. package/lib/examples/booleanToggle.d.ts +0 -62
  89. package/lib/examples/day1.d.ts +0 -23
  90. package/lib/examples/day2.d.ts +0 -42
  91. package/lib/examples/day3.d.ts +0 -51
  92. package/lib/examples/day4.d.ts +0 -72
  93. package/lib/examples/day5.d.ts +0 -133
  94. package/lib/examples/day6.d.ts +0 -85
  95. package/lib/examples/dynamic.d.ts +0 -1
  96. package/src/examples/1169.ts +0 -62
  97. package/src/examples/1220.ts +0 -146
  98. package/src/examples/1253.ts +0 -212
  99. package/src/examples/1254.ts +0 -67
  100. package/src/examples/1645.ts +0 -66
  101. package/src/examples/1779.ts +0 -83
  102. package/src/examples/1996.ts +0 -102
  103. package/src/examples/day1.ts +0 -61
  104. package/src/examples/day2.ts +0 -62
  105. package/src/examples/day3.ts +0 -76
  106. package/src/examples/day4.ts +0 -83
  107. package/src/examples/day5.ts +0 -169
  108. package/src/examples/day6.ts +0 -44
  109. /package/lib/examples/{steppershownav.d.ts → categorization-stepper-nav-buttons.d.ts} +0 -0
  110. /package/lib/examples/{stepper.d.ts → categorization-stepper.d.ts} +0 -0
  111. /package/lib/examples/{multi-enum.d.ts → enum-multi.d.ts} +0 -0
@@ -8,8 +8,8 @@ const schema = {
8
8
  enum: [
9
9
  'http://gedcomx.org/High',
10
10
  'http://gedcomx.org/Medium',
11
- 'http://gedcomx.org/Low'
12
- ]
11
+ 'http://gedcomx.org/Low',
12
+ ],
13
13
  },
14
14
  genderTypes: {
15
15
  type: 'string',
@@ -17,8 +17,8 @@ const schema = {
17
17
  'http://gedcomx.org/Male',
18
18
  'http://gedcomx.org/Female',
19
19
  'http://gedcomx.org/Unknown',
20
- 'http://gedcomx.org/Intersex'
21
- ]
20
+ 'http://gedcomx.org/Intersex',
21
+ ],
22
22
  },
23
23
  nameTypes: {
24
24
  type: 'string',
@@ -29,16 +29,16 @@ const schema = {
29
29
  'http://gedcomx.org/Nickname',
30
30
  'http://gedcomx.org/AdoptiveName',
31
31
  'http://gedcomx.org/FormalName',
32
- 'http://gedcomx.org/ReligiousName'
33
- ]
32
+ 'http://gedcomx.org/ReligiousName',
33
+ ],
34
34
  },
35
35
  namePartTypes: {
36
36
  enum: [
37
37
  'http://gedcomx.org/Prefix',
38
38
  'http://gedcomx.org/Suffix',
39
39
  'http://gedcomx.org/Given',
40
- 'http://gedcomx.org/Surname'
41
- ]
40
+ 'http://gedcomx.org/Surname',
41
+ ],
42
42
  },
43
43
  personFactTypes: {
44
44
  type: 'string',
@@ -103,25 +103,25 @@ const schema = {
103
103
  'http://gedcomx.org/Stillbirth',
104
104
  'http://gedcomx.org/Will',
105
105
  'http://gedcomx.org/Visit',
106
- 'http://gedcomx.org/Yahrzeit'
107
- ]
106
+ 'http://gedcomx.org/Yahrzeit',
107
+ ],
108
108
  },
109
109
  uri: {
110
- type: 'string'
110
+ type: 'string',
111
111
  },
112
112
  localeTag: {
113
- type: 'string'
113
+ type: 'string',
114
114
  // pattern:
115
115
  // "^(((((?'language'[a-z]{2,3})(-(?'extlang'[a-z]{3})){0,3})|(?'language'[a-z]{4})|(?'language'[a-z]{5,8}))(-(?'script'[a-z]{4}))?(-(?'region'[a-z]{2}|[0-9]{3}))?(-(?'variant'[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(-(?'extensions'[a-z0-9-[x]](-[a-z0-9]{2,8})+))*(-x(- (?'privateuse'[a-z0-9]{1,8}))+)?)|(x(- (?'privateuse'[a-z0-9]{1,8}))+)|(?'grandfathered'(?'irregular'en-GB-oed |i-ami |i-bnn |i-default |i-enochian |i-hak |i-klingon |i-lux |i-mingo |i-navajo |i-pwn |i-tao |i-tay |i-tsu |sgn-BE-FR |sgn-BE-NL |sgn-CH-DE)|(?'regular'art-lojban |cel-gaulish |no-bok |no-nyn |zh-guoyu |zh-hakka |zh-min |zh-min-nan |zh-xiang)))$"
116
116
  },
117
117
  resourceReference: {
118
118
  type: 'object',
119
119
  properties: {
120
- resource: { $ref: '#/definitions/uri' }
121
- }
120
+ resource: { $ref: '#/definitions/uri' },
121
+ },
122
122
  },
123
123
  identifier: {
124
- type: 'object'
124
+ type: 'object',
125
125
  },
126
126
  attribution: {
127
127
  title: 'Attribution',
@@ -129,129 +129,130 @@ const schema = {
129
129
  contributor: {
130
130
  $ref: '#/definitions/resourceReference',
131
131
  description:
132
- 'Reference to the agent to whom the attributed data is attributed.'
132
+ 'Reference to the agent to whom the attributed data is attributed.',
133
133
  },
134
134
  modified: {
135
135
  type: 'number',
136
- description: 'Timestamp of when the attributed data was contributed.'
136
+ description: 'Timestamp of when the attributed data was contributed.',
137
137
  },
138
138
  changeMessage: {
139
139
  type: 'string',
140
140
  description:
141
- 'A statement of why the attributed data is being provided by the contributor.'
141
+ 'A statement of why the attributed data is being provided by the contributor.',
142
142
  },
143
143
  creator: {
144
144
  $ref: '#/definitions/resourceReference',
145
145
  description:
146
- 'Reference to the agent that created the attributed data. The creator MAY be different from the contributor if changes were made to the attributed data.'
146
+ 'Reference to the agent that created the attributed data. The creator MAY be different from the contributor if changes were made to the attributed data.',
147
147
  },
148
148
  created: {
149
149
  type: 'number',
150
- description: 'Timestamp of when the attributed data was contributed.'
151
- }
152
- }
150
+ description: 'Timestamp of when the attributed data was contributed.',
151
+ },
152
+ },
153
153
  },
154
154
  note: {
155
155
  title: 'Note',
156
156
  properties: {
157
157
  lang: {
158
158
  $ref: '#/definitions/localeTag',
159
- description: 'The locale identifier for the note.'
159
+ description: 'The locale identifier for the note.',
160
160
  },
161
161
  subject: {
162
162
  type: 'string',
163
- description: 'A subject or title for the note.'
163
+ description: 'A subject or title for the note.',
164
164
  },
165
165
  text: { type: 'string', description: 'The text of the note.' },
166
166
  attribution: {
167
167
  $ref: '#/definitions/attribution',
168
- description: 'The attribution of this note.'
169
- }
168
+ description: 'The attribution of this note.',
169
+ },
170
170
  },
171
- required: ['text']
171
+ required: ['text'],
172
172
  },
173
173
  textValue: {
174
174
  type: 'object',
175
175
  properties: {
176
176
  lang: {
177
177
  $ref: '#/definitions/localeTag',
178
- description: 'The locale identifier for the value of the text.'
178
+ description: 'The locale identifier for the value of the text.',
179
179
  },
180
- value: { type: 'string', description: 'The text value.' }
180
+ value: { type: 'string', description: 'The text value.' },
181
181
  },
182
- required: ['value']
182
+ required: ['value'],
183
183
  },
184
184
  sourceCitation: {
185
185
  type: 'object',
186
186
  properties: {
187
187
  lang: {
188
188
  $ref: '#/definitions/localeTag',
189
- description: 'The locale identifier for the bibliographic metadata.'
189
+ description: 'The locale identifier for the bibliographic metadata.',
190
190
  },
191
191
  value: {
192
192
  type: 'string',
193
- description: 'The bibliographic metadata rendered as a full citation.'
194
- }
193
+ description:
194
+ 'The bibliographic metadata rendered as a full citation.',
195
+ },
195
196
  },
196
- required: ['value']
197
+ required: ['value'],
197
198
  },
198
199
  sourceReference: {
199
200
  title: 'SourceReference',
200
201
  properties: {
201
202
  description: {
202
203
  $ref: '#/definitions/uri',
203
- description: 'Reference to a description of the target source.'
204
+ description: 'Reference to a description of the target source.',
204
205
  },
205
206
  descriptionId: {
206
207
  type: 'string',
207
- description: 'The id of the target source.'
208
+ description: 'The id of the target source.',
208
209
  },
209
210
  attribution: {
210
211
  $ref: '#/definitions/attribution',
211
- description: 'The attribution of this source reference.'
212
+ description: 'The attribution of this source reference.',
212
213
  },
213
214
  qualifiers: {
214
215
  items: { $ref: '#/definitions/sourceReferenceQualifier' },
215
216
  description:
216
- 'Qualifiers for the reference, used to identify specific fragments of the source that are being referenced.'
217
- }
217
+ 'Qualifiers for the reference, used to identify specific fragments of the source that are being referenced.',
218
+ },
218
219
  },
219
- required: ['description']
220
+ required: ['description'],
220
221
  },
221
222
  sourceReferenceQualifier: {
222
223
  properties: {
223
224
  name: {
224
225
  anyOf: [
225
226
  { $ref: '#/definitions/sourceReferenceQualifierNames' },
226
- { $ref: '#/definitions/uri' }
227
- ]
227
+ { $ref: '#/definitions/uri' },
228
+ ],
228
229
  },
229
- value: { type: 'string' }
230
+ value: { type: 'string' },
230
231
  },
231
- required: ['name']
232
+ required: ['name'],
232
233
  },
233
234
  sourceReferenceQualifierNames: {
234
235
  enum: [
235
236
  'http://gedcomx.org/CharacterRegion',
236
237
  'http://gedcomx.org/RectangleRegion',
237
- 'http://gedcomx.org/TimeRegion'
238
- ]
238
+ 'http://gedcomx.org/TimeRegion',
239
+ ],
239
240
  },
240
241
  evidenceReference: {
241
242
  title: 'EvidenceReference',
242
243
  properties: {
243
244
  resource: { $ref: '#/definitions/uri' }, //subject
244
- attribution: { $ref: '#/definitions/attribution' }
245
+ attribution: { $ref: '#/definitions/attribution' },
245
246
  },
246
- required: ['resource']
247
+ required: ['resource'],
247
248
  },
248
249
  onlineAccount: {
249
250
  type: 'object',
250
251
  properties: {
251
252
  serviceHomepage: { $ref: '#/definitions/resourceReference' },
252
- accountName: { type: 'string' }
253
+ accountName: { type: 'string' },
253
254
  },
254
- required: ['serviceHomepage', 'accountName']
255
+ required: ['serviceHomepage', 'accountName'],
255
256
  },
256
257
  address: {
257
258
  type: 'object',
@@ -266,8 +267,8 @@ const schema = {
266
267
  street3: { type: 'string' },
267
268
  street4: { type: 'string' },
268
269
  street5: { type: 'string' },
269
- street6: { type: 'string' }
270
- }
270
+ street6: { type: 'string' },
271
+ },
271
272
  },
272
273
  conclusion: {
273
274
  type: 'object',
@@ -275,38 +276,38 @@ const schema = {
275
276
  properties: {
276
277
  id: {
277
278
  type: 'string',
278
- description: 'An identifier for the conclusion data.'
279
+ description: 'An identifier for the conclusion data.',
279
280
  },
280
281
  lang: {
281
282
  $ref: '#/definitions/localeTag',
282
- description: 'The locale identifier for the conclusion.'
283
+ description: 'The locale identifier for the conclusion.',
283
284
  },
284
285
  sources: {
285
286
  items: { $ref: '#/definitions/sourceReference' },
286
287
  description:
287
- 'The list of references to the sources of related to this conclusion.'
288
+ 'The list of references to the sources of related to this conclusion.',
288
289
  },
289
290
  analysis: {
290
291
  $ref: '#/definitions/resourceReference',
291
292
  description:
292
- 'Reference to a document containing analysis supporting this conclusion.'
293
+ 'Reference to a document containing analysis supporting this conclusion.',
293
294
  },
294
295
  notes: {
295
296
  items: { $ref: '#/definitions/note' },
296
- description: 'A list of notes about this conclusion.'
297
+ description: 'A list of notes about this conclusion.',
297
298
  },
298
299
  confidence: {
299
300
  anyOf: [
300
301
  { $ref: '#/definitions/uri' },
301
- { $ref: '#/definitions/confidenceTypes' }
302
+ { $ref: '#/definitions/confidenceTypes' },
302
303
  ],
303
- description: 'Reference to a confidence level for this conclusion.'
304
+ description: 'Reference to a confidence level for this conclusion.',
304
305
  },
305
306
  attribution: {
306
307
  $ref: '#/definitions/attribution',
307
- description: 'The attribution of this conclusion.'
308
- }
309
- }
308
+ description: 'The attribution of this conclusion.',
309
+ },
310
+ },
310
311
  },
311
312
  subject: {
312
313
  title: 'Subject',
@@ -317,25 +318,25 @@ const schema = {
317
318
  extracted: {
318
319
  type: 'boolean',
319
320
  description:
320
- 'Whether this subject is to be constrained as an extracted conclusion.'
321
+ 'Whether this subject is to be constrained as an extracted conclusion.',
321
322
  },
322
323
  evidence: {
323
324
  items: { $ref: '#/definitions/evidenceReference' },
324
325
  description:
325
- 'References to other subjects that support this subject.'
326
+ 'References to other subjects that support this subject.',
326
327
  },
327
328
  media: {
328
329
  items: { $ref: '#/definitions/sourceReference' },
329
330
  description:
330
- 'References to multimedia resources for this subject, such as photos or videos, intended to provide additional context or illustration for the subject and not considered evidence supporting the identity of the subject or its supporting conclusions.'
331
+ 'References to multimedia resources for this subject, such as photos or videos, intended to provide additional context or illustration for the subject and not considered evidence supporting the identity of the subject or its supporting conclusions.',
331
332
  },
332
333
  identifiers: {
333
334
  $ref: '#/definitions/identifier',
334
- description: 'A list of identifiers for the subject.'
335
- }
336
- }
337
- }
338
- ]
335
+ description: 'A list of identifiers for the subject.',
336
+ },
337
+ },
338
+ },
339
+ ],
339
340
  },
340
341
  gender: {
341
342
  allOf: [
@@ -345,14 +346,14 @@ const schema = {
345
346
  type: {
346
347
  anyOf: [
347
348
  { $ref: '#/definitions/uri' },
348
- { $ref: '#/definitions/genderTypes' }
349
+ { $ref: '#/definitions/genderTypes' },
349
350
  ],
350
- description: 'Enumerated value identifying the gender.'
351
- }
351
+ description: 'Enumerated value identifying the gender.',
352
+ },
352
353
  },
353
- required: ['type']
354
- }
355
- ]
354
+ required: ['type'],
355
+ },
356
+ ],
356
357
  },
357
358
  date: {
358
359
  type: 'object',
@@ -360,16 +361,16 @@ const schema = {
360
361
  original: {
361
362
  type: 'string',
362
363
  description:
363
- 'The original value of the date as supplied by the contributor.'
364
+ 'The original value of the date as supplied by the contributor.',
364
365
  },
365
366
  formal: {
366
367
  type: 'string',
367
368
  pattern:
368
369
  '^(A?[\\+-]\\d{4}(-\\d{2})?(-\\d{2})?T?(\\d{2})?(:\\d{2})?(:\\d{2})?([\\+-]\\d{2}(:\\d{2})?|Z)?)|(P(\\d{0,4}Y)?(\\d{0,4}M)?(\\d{0,4}D)?(T(\\d{0,4}H)?(\\d{0,4}M)?(\\d{0,4}S)?)?)$',
369
370
  description:
370
- 'The standardized formal value of the date, formatted according to the GEDCOM X Date Format specification.'
371
- }
372
- }
371
+ 'The standardized formal value of the date, formatted according to the GEDCOM X Date Format specification.',
372
+ },
373
+ },
373
374
  },
374
375
  name: {
375
376
  title: 'Name',
@@ -380,25 +381,25 @@ const schema = {
380
381
  type: {
381
382
  anyOf: [
382
383
  { $ref: '#/definitions/uri' },
383
- { $ref: '#/definitions/nameTypes' }
384
+ { $ref: '#/definitions/nameTypes' },
384
385
  ],
385
- description: 'Enumerated value identifying the name type.'
386
+ description: 'Enumerated value identifying the name type.',
386
387
  },
387
388
  date: {
388
389
  $ref: '#/definitions/date',
389
- description: 'The date of applicability of the name.'
390
+ description: 'The date of applicability of the name.',
390
391
  },
391
392
  nameForms: {
392
393
  items: {
393
- $ref: '#/definitions/nameForm'
394
+ $ref: '#/definitions/nameForm',
394
395
  },
395
396
  description:
396
- "The name form(s) that best express this name, usually representations considered proper and well formed in the person's native, historical cultural context."
397
- }
397
+ "The name form(s) that best express this name, usually representations considered proper and well formed in the person's native, historical cultural context.",
398
+ },
398
399
  },
399
- required: ['nameForms']
400
- }
401
- ]
400
+ required: ['nameForms'],
401
+ },
402
+ ],
402
403
  },
403
404
  namePart: {
404
405
  title: 'NamePart',
@@ -408,33 +409,34 @@ const schema = {
408
409
  type: {
409
410
  anyOf: [
410
411
  { $ref: '#/definitions/uri' },
411
- { $ref: '#/definitions/namePartTypes' }
412
+ { $ref: '#/definitions/namePartTypes' },
412
413
  ],
413
- description: 'Enumerated value identifying the type of the name part.'
414
+ description:
415
+ 'Enumerated value identifying the type of the name part.',
414
416
  },
415
417
  value: {
416
418
  type: 'string',
417
- description: 'The term(s) from the name that make up this name part.'
419
+ description: 'The term(s) from the name that make up this name part.',
418
420
  },
419
421
  qualifiers: {
420
422
  items: { $ref: '#/definitions/namePartQualifier' },
421
423
  description:
422
- 'Qualifiers to add additional semantic meaning to the name part.'
423
- }
424
+ 'Qualifiers to add additional semantic meaning to the name part.',
425
+ },
424
426
  },
425
- required: ['value']
427
+ required: ['value'],
426
428
  },
427
429
  namePartQualifier: {
428
430
  properties: {
429
431
  name: {
430
432
  anyOf: [
431
433
  { $ref: '#/definitions/namePartQualifierNames' },
432
- { $ref: '#/definitions/uri' }
433
- ]
434
+ { $ref: '#/definitions/uri' },
435
+ ],
434
436
  },
435
- value: { type: 'string' }
437
+ value: { type: 'string' },
436
438
  },
437
- required: ['name']
439
+ required: ['name'],
438
440
  },
439
441
  namePartQualifierNames: {
440
442
  enum: [
@@ -453,8 +455,8 @@ const schema = {
453
455
  'http://gedcomx.org/Characteristic', //A name derived from a characteristic. Name part qualifiers of type Characteristic SHOULD NOT provide a value.
454
456
  'http://gedcomx.org/Postnom', //A name mandated by law for populations from Congo Free State / Belgian Congo / Congo / Democratic Republic of Congo (formerly Zaire). Name part qualifiers of type Postnom SHOULD NOT provide a value.
455
457
  'http://gedcomx.org/Particle', //A grammatical designation for articles (a, the, dem, las, el, etc.), prepositions (of, from, aus, zu, op, etc.), initials, annotations (e.g. twin, wife of, infant, unknown), comparators (e.g. Junior, Senior, younger, little), ordinals (e.g. III, eighth), descendancy words (e.g. ben, ibn, bat, bin, bint, bar), and conjunctions (e.g. and, or, nee, ou, y, o, ne, &). Name part qualifiers of type Particle SHOULD NOT provide a value.
456
- 'http://gedcomx.org/RootName' //The "root" of a name part as distinguished from prefixes or suffixes. For example, the root of the Polish name "Wilkówna" is "Wilk". A RootName qualifier MUST provide a value property.
457
- ]
458
+ 'http://gedcomx.org/RootName', //The "root" of a name part as distinguished from prefixes or suffixes. For example, the root of the Polish name "Wilkówna" is "Wilk". A RootName qualifier MUST provide a value property.
459
+ ],
458
460
  },
459
461
  nameForm: {
460
462
  title: 'NameForm',
@@ -466,20 +468,20 @@ const schema = {
466
468
  properties: {
467
469
  lang: {
468
470
  $ref: '#/definitions/localeTag',
469
- description: 'The locale identifier for the name form.'
471
+ description: 'The locale identifier for the name form.',
470
472
  },
471
473
  fullText: {
472
474
  type: 'string',
473
475
  description:
474
- 'A full rendering of the name (or as much of the name as is known).'
476
+ 'A full rendering of the name (or as much of the name as is known).',
475
477
  },
476
478
  parts: {
477
479
  items: {
478
- $ref: '#/definitions/namePart'
480
+ $ref: '#/definitions/namePart',
479
481
  },
480
- description: 'Any identified name parts from the name.'
481
- }
482
- }
482
+ description: 'Any identified name parts from the name.',
483
+ },
484
+ },
483
485
  },
484
486
  fact: {
485
487
  title: 'PersonFact',
@@ -490,40 +492,40 @@ const schema = {
490
492
  type: {
491
493
  anyOf: [
492
494
  { $ref: '#/definitions/uri' },
493
- { $ref: '#/definitions/personFactTypes' }
495
+ { $ref: '#/definitions/personFactTypes' },
494
496
  ],
495
- description: 'Enumerated value identifying the type of the fact.'
497
+ description: 'Enumerated value identifying the type of the fact.',
496
498
  },
497
499
  date: {
498
500
  $ref: '#/definitions/date',
499
- description: 'The date of applicability of the fact.'
501
+ description: 'The date of applicability of the fact.',
500
502
  },
501
503
  place: {
502
504
  $ref: '#/definitions/placeReference',
503
- description: 'A reference to the place applicable to this fact.'
505
+ description: 'A reference to the place applicable to this fact.',
504
506
  },
505
507
  value: { type: 'string', description: 'The value of the fact.' },
506
508
  qualifiers: {
507
509
  items: { $ref: '#/definitions/factQualifier' },
508
510
  description:
509
- 'Qualifiers to add additional details about the fact.'
510
- }
511
+ 'Qualifiers to add additional details about the fact.',
512
+ },
511
513
  },
512
- required: ['type']
513
- }
514
- ]
514
+ required: ['type'],
515
+ },
516
+ ],
515
517
  },
516
518
  factQualifier: {
517
519
  properties: {
518
520
  name: {
519
521
  anyOf: [
520
522
  { $ref: '#/definitions/factQualifierNames' },
521
- { $ref: '#/definitions/uri' }
522
- ]
523
+ { $ref: '#/definitions/uri' },
524
+ ],
523
525
  },
524
- value: { type: 'string' }
526
+ value: { type: 'string' },
525
527
  },
526
- required: ['name']
528
+ required: ['name'],
527
529
  },
528
530
  factQualifierNames: {
529
531
  enum: [
@@ -531,8 +533,8 @@ const schema = {
531
533
  'http://gedcomx.org/Cause',
532
534
  'http://gedcomx.org/Religion',
533
535
  'http://gedcomx.org/Transport',
534
- 'http://gedcomx.org/NonConsensual'
535
- ]
536
+ 'http://gedcomx.org/NonConsensual',
537
+ ],
536
538
  },
537
539
  eventRole: {
538
540
  allOf: [
@@ -541,32 +543,33 @@ const schema = {
541
543
  properties: {
542
544
  person: {
543
545
  $ref: '#/definitions/resourceReference',
544
- description: 'Reference to the event participant.'
546
+ description: 'Reference to the event participant.',
545
547
  },
546
548
  type: {
547
549
  anyOf: [
548
550
  { $ref: '#/definitions/uri' },
549
- { $ref: '#/definitions/eventRoleTypes' }
551
+ { $ref: '#/definitions/eventRoleTypes' },
550
552
  ],
551
553
  description:
552
- "Enumerated value identifying the participant's role."
554
+ "Enumerated value identifying the participant's role.",
553
555
  },
554
556
  details: {
555
557
  type: 'string',
556
- description: 'Details about the role of participant in the event.'
557
- }
558
+ description:
559
+ 'Details about the role of participant in the event.',
560
+ },
558
561
  },
559
- required: ['person']
560
- }
561
- ]
562
+ required: ['person'],
563
+ },
564
+ ],
562
565
  },
563
566
  eventRoleTypes: {
564
567
  enum: [
565
568
  'http://gedcomx.org/Principal',
566
569
  'http://gedcomx.org/Participant',
567
570
  'http://gedcomx.org/Official',
568
- 'http://gedcomx.org/Witness'
569
- ]
571
+ 'http://gedcomx.org/Witness',
572
+ ],
570
573
  },
571
574
  placeReference: {
572
575
  type: 'object',
@@ -574,25 +577,25 @@ const schema = {
574
577
  original: {
575
578
  type: 'string',
576
579
  description:
577
- 'The original place name text as supplied by the contributor.'
580
+ 'The original place name text as supplied by the contributor.',
578
581
  },
579
582
  description: {
580
583
  $ref: '#/definitions/uri',
581
- description: 'A reference to a description of this place.'
582
- }
583
- }
584
+ description: 'A reference to a description of this place.',
585
+ },
586
+ },
584
587
  },
585
588
  coverage: {
586
589
  properties: {
587
590
  spatial: {
588
591
  $ref: '#/definitions/placeReference',
589
- description: 'The spatial (i.e., geographic) coverage.'
592
+ description: 'The spatial (i.e., geographic) coverage.',
590
593
  },
591
594
  temporal: {
592
595
  $ref: '#/definitions/date',
593
- description: 'The temporal coverage.'
594
- }
595
- }
596
+ description: 'The temporal coverage.',
597
+ },
598
+ },
596
599
  },
597
600
  groupRole: {
598
601
  allOf: [
@@ -601,26 +604,26 @@ const schema = {
601
604
  properties: {
602
605
  person: {
603
606
  $ref: '#/definitions/resourceReference',
604
- description: 'Reference to the group participant.'
607
+ description: 'Reference to the group participant.',
605
608
  },
606
609
  type: {
607
610
  $ref: '#/definitions/uri',
608
611
  description:
609
- "Enumerated value identifying the participant's role."
612
+ "Enumerated value identifying the participant's role.",
610
613
  },
611
614
  date: {
612
615
  $ref: '#/definitions/date',
613
- description: 'The date of applicability of the role.'
616
+ description: 'The date of applicability of the role.',
614
617
  },
615
618
  details: {
616
619
  type: 'string',
617
620
  description:
618
- 'Details about the role of he participant in the group.'
619
- }
621
+ 'Details about the role of he participant in the group.',
622
+ },
620
623
  },
621
- required: ['person']
622
- }
623
- ]
624
+ required: ['person'],
625
+ },
626
+ ],
624
627
  },
625
628
  person: {
626
629
  title: 'Person',
@@ -631,23 +634,23 @@ const schema = {
631
634
  private: {
632
635
  type: 'boolean',
633
636
  description:
634
- 'Whether this instance of Person has been designated for limited distribution or display.'
637
+ 'Whether this instance of Person has been designated for limited distribution or display.',
635
638
  },
636
639
  gender: {
637
640
  $ref: '#/definitions/gender',
638
- description: 'The sex of the person as assigned at birth.'
641
+ description: 'The sex of the person as assigned at birth.',
639
642
  },
640
643
  names: {
641
644
  items: { $ref: '#/definitions/name' },
642
- description: 'The names of the person.'
645
+ description: 'The names of the person.',
643
646
  },
644
647
  facts: {
645
648
  items: { $ref: '#/definitions/fact' },
646
- description: 'The facts of the person.'
647
- }
648
- }
649
- }
650
- ]
649
+ description: 'The facts of the person.',
650
+ },
651
+ },
652
+ },
653
+ ],
651
654
  },
652
655
  relationship: {
653
656
  allOf: [
@@ -657,34 +660,35 @@ const schema = {
657
660
  type: {
658
661
  anyOf: [
659
662
  { $ref: '#/definitions/relationshipType' },
660
- { $ref: '#/definitions/uri' }
663
+ { $ref: '#/definitions/uri' },
661
664
  ],
662
665
  description:
663
- 'Enumerated value identifying the type of the relationship.'
666
+ 'Enumerated value identifying the type of the relationship.',
664
667
  },
665
668
  person1: {
666
669
  $ref: '#/definitions/resourceReference',
667
- description: 'Reference to the first person in the relationship.'
670
+ description: 'Reference to the first person in the relationship.',
668
671
  },
669
672
  person2: {
670
673
  $ref: '#/definitions/resourceReference',
671
- description: 'Reference to the second person in the relationship.'
674
+ description:
675
+ 'Reference to the second person in the relationship.',
672
676
  },
673
677
  facts: {
674
678
  items: { $ref: '#/definitions/fact' },
675
- description: 'The facts about the relationship.'
676
- }
679
+ description: 'The facts about the relationship.',
680
+ },
677
681
  },
678
- required: ['person1', 'person2']
679
- }
680
- ]
682
+ required: ['person1', 'person2'],
683
+ },
684
+ ],
681
685
  },
682
686
  relationshipType: {
683
687
  enum: [
684
688
  'http://gedcomx.org/Couple', // A relationship of a pair of persons.
685
689
  'http://gedcomx.org/ParentChild', // A relationship from a parent to a child.
686
- 'http://gedcomx.org/EnslavedBy' // A relationship from an enslaved person to the enslaver or slaveholder of the person.
687
- ]
690
+ 'http://gedcomx.org/EnslavedBy', // A relationship from an enslaved person to the enslaver or slaveholder of the person.
691
+ ],
688
692
  },
689
693
  sourceDescription: {
690
694
  title: 'SourceDescription',
@@ -692,108 +696,109 @@ const schema = {
692
696
  id: {
693
697
  type: 'string',
694
698
  description:
695
- 'An identifier for the data structure holding the source description data.'
699
+ 'An identifier for the data structure holding the source description data.',
696
700
  },
697
701
  resourceType: {
698
702
  anyOf: [
699
703
  { $ref: '#/definitions/resourceTypes' },
700
- { $ref: '#/definitions/uri' }
704
+ { $ref: '#/definitions/uri' },
701
705
  ],
702
706
  description:
703
- 'Enumerated value identifying the type of resource being described.'
707
+ 'Enumerated value identifying the type of resource being described.',
704
708
  },
705
709
  citations: {
706
710
  items: { $ref: '#/definitions/sourceCitation' },
707
- description: 'The citation(s) for this source.'
711
+ description: 'The citation(s) for this source.',
708
712
  },
709
713
  mediaType: {
710
714
  type: 'string',
711
715
  description:
712
- 'A hint about the media type of the resource being described.'
716
+ 'A hint about the media type of the resource being described.',
713
717
  },
714
718
  about: {
715
719
  $ref: '#/definitions/uri',
716
720
  description:
717
- 'A uniform resource identifier (URI) for the resource being described.'
721
+ 'A uniform resource identifier (URI) for the resource being described.',
718
722
  },
719
723
  mediator: {
720
724
  $ref: '#/definitions/resourceReference',
721
725
  description:
722
- 'A reference to the entity that mediates access to the described source.'
726
+ 'A reference to the entity that mediates access to the described source.',
723
727
  },
724
728
  publisher: {
725
729
  $ref: '#/definitions/resourceReference',
726
730
  description:
727
- 'A reference to the entity responsible for making the described source available.'
731
+ 'A reference to the entity responsible for making the described source available.',
728
732
  },
729
733
  sources: {
730
734
  items: { $ref: '#/definitions/sourceReference' },
731
735
  description:
732
- 'A list of references to any sources from which this source is derived.'
736
+ 'A list of references to any sources from which this source is derived.',
733
737
  },
734
738
  analysis: {
735
739
  $ref: '#/definitions/resourceReference',
736
740
  description:
737
- 'A reference to a document containing analysis about this source.'
741
+ 'A reference to a document containing analysis about this source.',
738
742
  },
739
743
  componentOf: {
740
744
  $ref: '#/definitions/sourceReference',
741
745
  description:
742
- 'A reference to the source that contains this source, i.e. its parent context. Used when the description of a source is not complete without the description of its parent (or containing) source.'
746
+ 'A reference to the source that contains this source, i.e. its parent context. Used when the description of a source is not complete without the description of its parent (or containing) source.',
743
747
  },
744
748
  titles: {
745
749
  items: { $ref: '#/definitions/textValue' },
746
- description: 'The display name(s) for this source.'
750
+ description: 'The display name(s) for this source.',
747
751
  },
748
752
  notes: {
749
753
  items: { $ref: '#/definitions/note' },
750
- description: 'A list of notes about a source.'
754
+ description: 'A list of notes about a source.',
751
755
  },
752
756
  attribution: {
753
757
  $ref: '#/definitions/attribution',
754
- description: 'The attribution of this source description.'
758
+ description: 'The attribution of this source description.',
755
759
  },
756
760
  rights: {
757
761
  items: { $ref: '#/definitions/resourceReference' },
758
- description: 'The rights for this resource.'
762
+ description: 'The rights for this resource.',
759
763
  },
760
764
  coverage: {
761
765
  $ref: '#/definitions/coverage',
762
- description: 'The coverage of the resource.'
766
+ description: 'The coverage of the resource.',
763
767
  },
764
768
  descriptions: {
765
769
  items: { $ref: '#/definitions/textValue' },
766
- description: 'Human-readable descriptions of this source.'
770
+ description: 'Human-readable descriptions of this source.',
767
771
  },
768
772
  identifiers: {
769
773
  items: { $ref: '#/definitions/identifier' },
770
- description: 'A list of identifiers for the resource being described.'
774
+ description:
775
+ 'A list of identifiers for the resource being described.',
771
776
  },
772
777
  created: {
773
778
  type: 'number',
774
779
  description:
775
- 'Timestamp of when the resource being described was created.'
780
+ 'Timestamp of when the resource being described was created.',
776
781
  },
777
782
  modified: {
778
783
  type: 'number',
779
784
  description:
780
- 'Timestamp of when the resource being described was modified.'
785
+ 'Timestamp of when the resource being described was modified.',
781
786
  },
782
787
  repository: {
783
788
  $ref: '#/definitions/resourceReference',
784
789
  description:
785
- 'A reference to the repository that contains the described resource.'
786
- }
790
+ 'A reference to the repository that contains the described resource.',
791
+ },
787
792
  },
788
- required: ['citations']
793
+ required: ['citations'],
789
794
  },
790
795
  resourceTypes: {
791
796
  enum: [
792
797
  'http://gedcomx.org/Collection', //A collection of genealogical resources. A collection may contain physical artifacts (such as a collection of books in a library), records (such as the 1940 U.S. Census), or digital artifacts (such as an online genealogical application).
793
798
  'http://gedcomx.org/PhysicalArtifact', //A physical artifact, such as a book.
794
799
  'http://gedcomx.org/DigitalArtifact', //A digital artifact, such as a digital image of a birth certificate or other record.
795
- 'http://gedcomx.org/Record' //A historical record, such as a census record or a vital record.
796
- ]
800
+ 'http://gedcomx.org/Record', //A historical record, such as a census record or a vital record.
801
+ ],
797
802
  },
798
803
  agent: {
799
804
  title: 'Agent',
@@ -801,34 +806,34 @@ const schema = {
801
806
  id: { type: 'string' },
802
807
  identifiers: {
803
808
  type: 'array',
804
- items: { $ref: '#/definitions/identifier' }
809
+ items: { $ref: '#/definitions/identifier' },
805
810
  },
806
811
  names: {
807
812
  type: 'array',
808
- items: { $ref: '#/definitions/textValue' }
813
+ items: { $ref: '#/definitions/textValue' },
809
814
  },
810
815
  homepage: { $ref: '#/definitions/resourceReference' },
811
816
  openid: { $ref: '#/definitions/resourceReference' },
812
817
  accounts: {
813
818
  type: 'array',
814
- items: { $ref: '#/definitions/onlineAccount' }
819
+ items: { $ref: '#/definitions/onlineAccount' },
815
820
  },
816
821
  emails: {
817
822
  type: 'array',
818
- items: { $ref: '#/definitions/resourceReference' }
823
+ items: { $ref: '#/definitions/resourceReference' },
819
824
  },
820
825
  phones: {
821
826
  type: 'array',
822
- items: { $ref: '#/definitions/resourceReference' }
827
+ items: { $ref: '#/definitions/resourceReference' },
823
828
  },
824
829
  addresses: {
825
830
  type: 'array',
826
- items: { $ref: '#/definitions/address' }
831
+ items: { $ref: '#/definitions/address' },
827
832
  },
828
833
  person: {
829
- $ref: '#/definitions/resourceReference'
830
- }
831
- }
834
+ $ref: '#/definitions/resourceReference',
835
+ },
836
+ },
832
837
  },
833
838
  event: {
834
839
  allOf: [
@@ -838,18 +843,18 @@ const schema = {
838
843
  type: {
839
844
  anyOf: [
840
845
  { $ref: '#/definitions/eventTypes' },
841
- { $ref: '#/definitions/uri' }
842
- ]
846
+ { $ref: '#/definitions/uri' },
847
+ ],
843
848
  },
844
849
  date: { $ref: '#/definitions/date' },
845
850
  place: { $ref: '#/definitions/placeReference' },
846
851
  roles: {
847
852
  type: 'array',
848
- items: { $ref: '#/definitions/eventRole' }
849
- }
850
- }
851
- }
852
- ]
853
+ items: { $ref: '#/definitions/eventRole' },
854
+ },
855
+ },
856
+ },
857
+ ],
853
858
  },
854
859
  eventTypes: {
855
860
  enum: [
@@ -886,8 +891,8 @@ const schema = {
886
891
  'http://gedcomx.org/MoveTo', //An event of a move (i.e. change of residence) to a location.
887
892
  'http://gedcomx.org/Naturalization', //A naturalization event (i.e. acquisition of citizenship and nationality).
888
893
  'http://gedcomx.org/Ordination', //An ordination event.
889
- 'http://gedcomx.org/Retirement' //A retirement event.
890
- ]
894
+ 'http://gedcomx.org/Retirement', //A retirement event.
895
+ ],
891
896
  },
892
897
  document: {
893
898
  title: 'Document',
@@ -898,25 +903,25 @@ const schema = {
898
903
  type: {
899
904
  anyOf: [
900
905
  { $ref: '#/definitions/documentTypes' },
901
- { $ref: '#/definitions/uri' }
902
- ]
906
+ { $ref: '#/definitions/uri' },
907
+ ],
903
908
  },
904
909
  extracted: { type: 'boolean' },
905
910
  textType: { type: 'string' },
906
911
  text: { type: 'string' },
907
- attribution: { $ref: '#/definitions/attribution' }
912
+ attribution: { $ref: '#/definitions/attribution' },
908
913
  },
909
- required: ['text']
910
- }
911
- ]
914
+ required: ['text'],
915
+ },
916
+ ],
912
917
  },
913
918
  documentTypes: {
914
919
  enum: [
915
920
  'http://gedcomx.org/Abstract', //The document is an abstract of a record or document.
916
921
  'http://gedcomx.org/Transcription', //The document is a transcription of a record or document.
917
922
  'http://gedcomx.org/Translation', //The document is a translation of a record or document.
918
- 'http://gedcomx.org/Analysis' //The document is an analysis done by a researcher; a genealogical proof statement is an example of one kind of analysis document.
919
- ]
923
+ 'http://gedcomx.org/Analysis', //The document is an analysis done by a researcher; a genealogical proof statement is an example of one kind of analysis document.
924
+ ],
920
925
  },
921
926
  placeDescription: {
922
927
  title: 'PlaceDescription',
@@ -925,21 +930,21 @@ const schema = {
925
930
  {
926
931
  properties: {
927
932
  names: {
928
- items: { $ref: '#/definitions/textValue' }
933
+ items: { $ref: '#/definitions/textValue' },
929
934
  },
930
935
  type: { $ref: '#/definitions/uri' },
931
936
  place: { $ref: '#/definitions/resourceReference' },
932
937
  jurisdiction: {
933
- $ref: '#/definitions/resourceReference'
938
+ $ref: '#/definitions/resourceReference',
934
939
  },
935
940
  latitude: { type: 'number' },
936
941
  longitude: { type: 'number' },
937
942
  temporalDescription: { $ref: '#/definitions/date' },
938
- spatialDescription: { $ref: '#/definitions/resourceReference' }
943
+ spatialDescription: { $ref: '#/definitions/resourceReference' },
939
944
  },
940
- required: ['names']
941
- }
942
- ]
945
+ required: ['names'],
946
+ },
947
+ ],
943
948
  },
944
949
  group: {
945
950
  allOf: [
@@ -948,68 +953,68 @@ const schema = {
948
953
  properties: {
949
954
  names: {
950
955
  type: 'array',
951
- items: { $ref: '#/definitions/textValue' }
956
+ items: { $ref: '#/definitions/textValue' },
952
957
  },
953
958
  date: { $ref: '#/definitions/date' },
954
959
  place: { $ref: '#/definitions/resourceReference' },
955
960
  roles: {
956
961
  type: 'array',
957
- items: { $ref: '#/definitions/groupRole' }
958
- }
962
+ items: { $ref: '#/definitions/groupRole' },
963
+ },
959
964
  },
960
- required: ['names']
961
- }
962
- ]
963
- }
965
+ required: ['names'],
966
+ },
967
+ ],
968
+ },
964
969
  },
965
970
 
966
971
  type: 'object',
967
972
  properties: {
968
973
  persons: {
969
974
  type: 'array',
970
- items: { $ref: '#/definitions/person' }
975
+ items: { $ref: '#/definitions/person' },
971
976
  },
972
977
  relationships: {
973
978
  type: 'array',
974
- items: { $ref: '#/definitions/relationship' }
979
+ items: { $ref: '#/definitions/relationship' },
975
980
  },
976
981
  sourceDescriptions: {
977
982
  type: 'array',
978
- items: { $ref: '#/definitions/sourceDescription' }
983
+ items: { $ref: '#/definitions/sourceDescription' },
979
984
  },
980
985
  agents: {
981
986
  type: 'array',
982
- items: { $ref: '#/definitions/agent' }
987
+ items: { $ref: '#/definitions/agent' },
983
988
  },
984
989
  events: {
985
990
  type: 'array',
986
- items: { $ref: '#/definitions/event' }
991
+ items: { $ref: '#/definitions/event' },
987
992
  },
988
993
  documents: {
989
994
  type: 'array',
990
- items: { $ref: '#/definitions/document' }
995
+ items: { $ref: '#/definitions/document' },
991
996
  },
992
997
  places: {
993
998
  type: 'array',
994
- items: { $ref: '#/definitions/placeDescription' }
999
+ items: { $ref: '#/definitions/placeDescription' },
995
1000
  },
996
1001
  groups: {
997
1002
  type: 'array',
998
- items: { $ref: '#/definitions/group' }
1003
+ items: { $ref: '#/definitions/group' },
999
1004
  },
1000
1005
  description: { $ref: '#/definitions/uri' },
1001
1006
  id: { type: 'string' },
1002
1007
  lang: { $ref: '#/definitions/localeTag' },
1003
- attribution: { $ref: '#/definitions/attribution' }
1004
- }
1008
+ attribution: { $ref: '#/definitions/attribution' },
1009
+ },
1005
1010
  };
1006
1011
 
1007
1012
  const data: any = {
1008
1013
  attribution: {
1009
1014
  contributor: {
1010
- resource: '#A-1'
1015
+ resource: '#A-1',
1011
1016
  },
1012
- modified: 1398405600000
1017
+ modified: 1398405600000,
1013
1018
  },
1014
1019
  persons: [
1015
1020
  {
@@ -1017,150 +1022,150 @@ const data: any = {
1017
1022
  {
1018
1023
  nameForms: [
1019
1024
  {
1020
- fullText: 'Samuel Ham'
1021
- }
1022
- ]
1023
- }
1025
+ fullText: 'Samuel Ham',
1026
+ },
1027
+ ],
1028
+ },
1024
1029
  ],
1025
1030
  gender: {
1026
- type: 'http://gedcomx.org/Male'
1031
+ type: 'http://gedcomx.org/Male',
1027
1032
  },
1028
1033
  facts: [
1029
1034
  {
1030
1035
  type: 'http://gedcomx.org/Residence',
1031
1036
  date: {
1032
1037
  original: '3 November 1828',
1033
- formal: '+1828-11-03'
1038
+ formal: '+1828-11-03',
1034
1039
  },
1035
1040
  place: {
1036
- original: 'parish of Honiton, Devon, England'
1037
- }
1038
- }
1041
+ original: 'parish of Honiton, Devon, England',
1042
+ },
1043
+ },
1039
1044
  ],
1040
1045
  extracted: true,
1041
1046
  sources: [
1042
1047
  {
1043
- description: '#S-2'
1044
- }
1048
+ description: '#S-2',
1049
+ },
1045
1050
  ],
1046
- id: 'P-1'
1051
+ id: 'P-1',
1047
1052
  },
1048
1053
  {
1049
1054
  names: [
1050
1055
  {
1051
1056
  nameForms: [
1052
1057
  {
1053
- fullText: 'Elizabeth Spiller'
1054
- }
1055
- ]
1056
- }
1058
+ fullText: 'Elizabeth Spiller',
1059
+ },
1060
+ ],
1061
+ },
1057
1062
  ],
1058
1063
  gender: {
1059
- type: 'http://gedcomx.org/Female'
1064
+ type: 'http://gedcomx.org/Female',
1060
1065
  },
1061
1066
  facts: [
1062
1067
  {
1063
1068
  type: 'http://gedcomx.org/Residence',
1064
1069
  date: {
1065
1070
  original: '3 November 1828',
1066
- formal: '+1828-11-03'
1071
+ formal: '+1828-11-03',
1067
1072
  },
1068
1073
  place: {
1069
- original: 'parish of Wilton, Somerset, England'
1070
- }
1071
- }
1074
+ original: 'parish of Wilton, Somerset, England',
1075
+ },
1076
+ },
1072
1077
  ],
1073
1078
  extracted: true,
1074
1079
  sources: [
1075
1080
  {
1076
- description: '#S-2'
1077
- }
1081
+ description: '#S-2',
1082
+ },
1078
1083
  ],
1079
- id: 'P-2'
1084
+ id: 'P-2',
1080
1085
  },
1081
1086
  {
1082
1087
  names: [
1083
1088
  {
1084
1089
  nameForms: [
1085
1090
  {
1086
- fullText: 'Jno. Pain'
1087
- }
1088
- ]
1089
- }
1091
+ fullText: 'Jno. Pain',
1092
+ },
1093
+ ],
1094
+ },
1090
1095
  ],
1091
1096
  extracted: true,
1092
1097
  sources: [
1093
1098
  {
1094
- description: '#S-2'
1095
- }
1099
+ description: '#S-2',
1100
+ },
1096
1101
  ],
1097
- id: 'P-3'
1102
+ id: 'P-3',
1098
1103
  },
1099
1104
  {
1100
1105
  names: [
1101
1106
  {
1102
1107
  nameForms: [
1103
1108
  {
1104
- fullText: 'R.G. Halls'
1105
- }
1106
- ]
1107
- }
1109
+ fullText: 'R.G. Halls',
1110
+ },
1111
+ ],
1112
+ },
1108
1113
  ],
1109
1114
  extracted: true,
1110
1115
  sources: [
1111
1116
  {
1112
- description: '#S-2'
1113
- }
1117
+ description: '#S-2',
1118
+ },
1114
1119
  ],
1115
- id: 'P-4'
1120
+ id: 'P-4',
1116
1121
  },
1117
1122
  {
1118
1123
  names: [
1119
1124
  {
1120
1125
  nameForms: [
1121
1126
  {
1122
- fullText: 'Peggy Hammet'
1123
- }
1124
- ]
1125
- }
1127
+ fullText: 'Peggy Hammet',
1128
+ },
1129
+ ],
1130
+ },
1126
1131
  ],
1127
1132
  extracted: true,
1128
1133
  sources: [
1129
1134
  {
1130
- description: '#S-2'
1131
- }
1135
+ description: '#S-2',
1136
+ },
1132
1137
  ],
1133
- id: 'P-5'
1138
+ id: 'P-5',
1134
1139
  },
1135
1140
  {
1136
1141
  names: [
1137
1142
  {
1138
1143
  nameForms: [
1139
1144
  {
1140
- fullText: 'David Smith Stone'
1141
- }
1142
- ]
1143
- }
1145
+ fullText: 'David Smith Stone',
1146
+ },
1147
+ ],
1148
+ },
1144
1149
  ],
1145
1150
  extracted: true,
1146
1151
  sources: [
1147
1152
  {
1148
- description: '#S-2'
1149
- }
1153
+ description: '#S-2',
1154
+ },
1150
1155
  ],
1151
- id: 'P-6'
1156
+ id: 'P-6',
1152
1157
  },
1153
1158
  {
1154
1159
  evidence: [
1155
1160
  {
1156
- resource: '#P-1'
1157
- }
1161
+ resource: '#P-1',
1162
+ },
1158
1163
  ],
1159
1164
  analysis: {
1160
- resource: '#D-2'
1165
+ resource: '#D-2',
1161
1166
  },
1162
- id: 'C-1'
1163
- }
1167
+ id: 'C-1',
1168
+ },
1164
1169
  ],
1165
1170
  relationships: [
1166
1171
  {
@@ -1171,175 +1176,174 @@ const data: any = {
1171
1176
  type: 'http://gedcomx.org/Marriage',
1172
1177
  date: {
1173
1178
  original: '3 November 1828',
1174
- formal: '+1828-11-03'
1179
+ formal: '+1828-11-03',
1175
1180
  },
1176
1181
  place: {
1177
- original: 'Wilton St George, Wilton, Somerset, England'
1178
- }
1179
- }
1182
+ original: 'Wilton St George, Wilton, Somerset, England',
1183
+ },
1184
+ },
1180
1185
  ],
1181
1186
  person1: {
1182
- resource: '#P-1'
1187
+ resource: '#P-1',
1183
1188
  },
1184
1189
  person2: {
1185
- resource: '#P-2'
1186
- }
1187
- }
1190
+ resource: '#P-2',
1191
+ },
1192
+ },
1188
1193
  ],
1189
1194
  sourceDescriptions: [
1190
1195
  {
1191
1196
  description: [
1192
1197
  {
1193
1198
  value:
1194
- 'Marriage entry for Samuel Ham and Elizabeth in a copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837.'
1195
- }
1199
+ 'Marriage entry for Samuel Ham and Elizabeth in a copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837.',
1200
+ },
1196
1201
  ],
1197
1202
  resourceType: 'http://gedcomx.org/PhysicalArtifact',
1198
1203
  citations: [
1199
1204
  {
1200
1205
  value:
1201
- 'Joseph Houghton Spencer, transcriber, Church of England, Parish Church of Wilton (Somerset). A copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837; Marriage entry for Samuel Ham and Elizabeth Spiller (3 November 1828), (Taunton: Barnicott, 1890), p. 224, No. 86.'
1202
- }
1206
+ 'Joseph Houghton Spencer, transcriber, Church of England, Parish Church of Wilton (Somerset). A copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837; Marriage entry for Samuel Ham and Elizabeth Spiller (3 November 1828), (Taunton: Barnicott, 1890), p. 224, No. 86.',
1207
+ },
1203
1208
  ],
1204
1209
  titles: [
1205
1210
  {
1206
1211
  value:
1207
- 'Marriage entry for Samuel Ham and Elizabeth Spiller, Parish Register, Wilton, Somerset, England'
1208
- }
1212
+ 'Marriage entry for Samuel Ham and Elizabeth Spiller, Parish Register, Wilton, Somerset, England',
1213
+ },
1209
1214
  ],
1210
1215
  repository: {
1211
- resource: '#A-2'
1216
+ resource: '#A-2',
1212
1217
  },
1213
- id: 'S-1'
1218
+ id: 'S-1',
1214
1219
  },
1215
1220
  {
1216
1221
  description: [
1217
1222
  {
1218
1223
  value:
1219
- 'Transcription of marriage entry for Samuel Ham and Elizabeth in a copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837.'
1220
- }
1224
+ 'Transcription of marriage entry for Samuel Ham and Elizabeth in a copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837.',
1225
+ },
1221
1226
  ],
1222
1227
  sources: [
1223
1228
  {
1224
- description: '#S-1'
1225
- }
1229
+ description: '#S-1',
1230
+ },
1226
1231
  ],
1227
1232
  resourceType: 'http://gedcomx.org/DigitalArtifact',
1228
1233
  citations: [
1229
1234
  {
1230
1235
  value:
1231
- 'Joseph Houghton Spencer, transcriber, Church of England, Parish Church of Wilton (Somerset). A copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837; Marriage entry for Samuel Ham and Elizabeth Spiller (3 November 1828), (Taunton: Barnicott, 1890), p. 224, No. 86.'
1232
- }
1236
+ 'Joseph Houghton Spencer, transcriber, Church of England, Parish Church of Wilton (Somerset). A copy of the registers of the baptisms, marriages, and burials at the church of St. George in the parish of Wilton : adjoining Taunton, in the county of Somerset from A.D. 1558 to A.D. 1837; Marriage entry for Samuel Ham and Elizabeth Spiller (3 November 1828), (Taunton: Barnicott, 1890), p. 224, No. 86.',
1237
+ },
1233
1238
  ],
1234
1239
  about: '#D-1',
1235
1240
  titles: [
1236
1241
  {
1237
1242
  value:
1238
- 'Transcription of marriage entry for Samuel Ham and Elizabeth Spiller, Parish Register, Wilton, Somerset, England'
1239
- }
1243
+ 'Transcription of marriage entry for Samuel Ham and Elizabeth Spiller, Parish Register, Wilton, Somerset, England',
1244
+ },
1240
1245
  ],
1241
- id: 'S-2'
1242
- }
1246
+ id: 'S-2',
1247
+ },
1243
1248
  ],
1244
1249
  agents: [
1245
1250
  {
1246
1251
  names: [
1247
1252
  {
1248
- value: 'Jane Doe'
1249
- }
1253
+ value: 'Jane Doe',
1254
+ },
1250
1255
  ],
1251
1256
  emails: [
1252
1257
  {
1253
- resource: 'mailto:example@example.org'
1254
- }
1258
+ resource: 'mailto:example@example.org',
1259
+ },
1255
1260
  ],
1256
- id: 'A-1'
1261
+ id: 'A-1',
1257
1262
  },
1258
1263
  {
1259
1264
  names: [
1260
1265
  {
1261
- value: 'Family History Library'
1262
- }
1266
+ value: 'Family History Library',
1267
+ },
1263
1268
  ],
1264
1269
  addresses: [
1265
1270
  {
1266
1271
  city: 'Salt Lake City',
1267
- stateOrProvince: 'Utah'
1268
- }
1272
+ stateOrProvince: 'Utah',
1273
+ },
1269
1274
  ],
1270
- id: 'A-2'
1271
- }
1275
+ id: 'A-2',
1276
+ },
1272
1277
  ],
1273
1278
  events: [
1274
1279
  {
1275
1280
  type: 'http://gedcomx.org/Marriage',
1276
1281
  date: {
1277
1282
  original: '3 November 1828',
1278
- formal: '+1828-11-03'
1283
+ formal: '+1828-11-03',
1279
1284
  },
1280
1285
  place: {
1281
- original: 'Wilton St George, Wilton, Somerset, England'
1286
+ original: 'Wilton St George, Wilton, Somerset, England',
1282
1287
  },
1283
1288
  roles: [
1284
1289
  {
1285
1290
  type: 'http://gedcomx.org/Principal',
1286
1291
  person: {
1287
- resource: '#P-1'
1288
- }
1292
+ resource: '#P-1',
1293
+ },
1289
1294
  },
1290
1295
  {
1291
1296
  type: 'http://gedcomx.org/Principal',
1292
1297
  person: {
1293
- resource: '#P-2'
1294
- }
1298
+ resource: '#P-2',
1299
+ },
1295
1300
  },
1296
1301
  {
1297
1302
  type: 'http://gedcomx.org/Witness',
1298
1303
  person: {
1299
- resource: '#P-3'
1300
- }
1304
+ resource: '#P-3',
1305
+ },
1301
1306
  },
1302
1307
  {
1303
1308
  type: 'http://gedcomx.org/Witness',
1304
1309
  person: {
1305
- resource: '#P-4'
1306
- }
1310
+ resource: '#P-4',
1311
+ },
1307
1312
  },
1308
1313
  {
1309
1314
  type: 'http://gedcomx.org/Witness',
1310
1315
  person: {
1311
- resource: '#P-5'
1312
- }
1316
+ resource: '#P-5',
1317
+ },
1313
1318
  },
1314
1319
  {
1315
1320
  type: 'http://gedcomx.org/Official',
1316
1321
  person: {
1317
- resource: '#P-6'
1318
- }
1319
- }
1322
+ resource: '#P-6',
1323
+ },
1324
+ },
1320
1325
  ],
1321
1326
  extracted: true,
1322
- id: 'E-1'
1323
- }
1327
+ id: 'E-1',
1328
+ },
1324
1329
  ],
1325
1330
  documents: [
1326
1331
  {
1327
1332
  type: 'http://gedcomx.org/Transcription',
1328
- text:
1329
- 'Samuel Ham of the parish of Honiton and Elizabeth Spiller\nwere married this 3rd day of November 1828 by David Smith\nStone, Pl Curate,\nIn the Presence of\nJno Pain.\nR.G. Halls. Peggy Hammet.\nNo. 86.',
1333
+ text: 'Samuel Ham of the parish of Honiton and Elizabeth Spiller\nwere married this 3rd day of November 1828 by David Smith\nStone, Pl Curate,\nIn the Presence of\nJno Pain.\nR.G. Halls. Peggy Hammet.\nNo. 86.',
1330
1334
  sources: [
1331
1335
  {
1332
- description: '#S-1'
1333
- }
1336
+ description: '#S-1',
1337
+ },
1334
1338
  ],
1335
1339
  lang: 'en',
1336
- id: 'D-1'
1340
+ id: 'D-1',
1337
1341
  },
1338
1342
  {
1339
1343
  text: '...Jane Doe`s analysis document...',
1340
- id: 'D-2'
1341
- }
1342
- ]
1344
+ id: 'D-2',
1345
+ },
1346
+ ],
1343
1347
  };
1344
1348
 
1345
1349
  export const uischema: any = {
@@ -1348,41 +1352,41 @@ export const uischema: any = {
1348
1352
  {
1349
1353
  type: 'Category',
1350
1354
  label: 'Persons',
1351
- elements: [{ type: 'ListWithDetail', scope: '#/properties/persons' }]
1355
+ elements: [{ type: 'ListWithDetail', scope: '#/properties/persons' }],
1352
1356
  },
1353
1357
  {
1354
1358
  type: 'Category',
1355
1359
  label: 'Relationships',
1356
1360
  elements: [
1357
- { type: 'ListWithDetail', scope: '#/properties/relationships' }
1358
- ]
1361
+ { type: 'ListWithDetail', scope: '#/properties/relationships' },
1362
+ ],
1359
1363
  },
1360
1364
  {
1361
1365
  type: 'Category',
1362
1366
  label: 'SourceDescriptions',
1363
1367
  elements: [
1364
- { type: 'ListWithDetail', scope: '#/properties/sourceDescriptions' }
1365
- ]
1368
+ { type: 'ListWithDetail', scope: '#/properties/sourceDescriptions' },
1369
+ ],
1366
1370
  },
1367
1371
  {
1368
1372
  type: 'Category',
1369
1373
  label: 'Agents',
1370
- elements: [{ type: 'ListWithDetail', scope: '#/properties/agents' }]
1374
+ elements: [{ type: 'ListWithDetail', scope: '#/properties/agents' }],
1371
1375
  },
1372
1376
  {
1373
1377
  type: 'Category',
1374
1378
  label: 'Events',
1375
- elements: [{ type: 'ListWithDetail', scope: '#/properties/events' }]
1379
+ elements: [{ type: 'ListWithDetail', scope: '#/properties/events' }],
1376
1380
  },
1377
1381
  {
1378
1382
  type: 'Category',
1379
1383
  label: 'Documents',
1380
- elements: [{ type: 'ListWithDetail', scope: '#/properties/documents' }]
1384
+ elements: [{ type: 'ListWithDetail', scope: '#/properties/documents' }],
1381
1385
  },
1382
1386
  {
1383
1387
  type: 'Category',
1384
1388
  label: 'Places',
1385
- elements: [{ type: 'ListWithDetail', scope: '#/properties/places' }]
1389
+ elements: [{ type: 'ListWithDetail', scope: '#/properties/places' }],
1386
1390
  },
1387
1391
  {
1388
1392
  type: 'Category',
@@ -1391,10 +1395,10 @@ export const uischema: any = {
1391
1395
  { type: 'Control', scope: '#/properties/description' },
1392
1396
  { type: 'Control', scope: '#/properties/lang' },
1393
1397
  { type: 'Control', scope: '#/properties/attribution' },
1394
- { type: 'Control', scope: '#/properties/id' }
1395
- ]
1396
- }
1397
- ]
1398
+ { type: 'Control', scope: '#/properties/id' },
1399
+ ],
1400
+ },
1401
+ ],
1398
1402
  };
1399
1403
 
1400
1404
  registerExamples([
@@ -1403,6 +1407,6 @@ registerExamples([
1403
1407
  label: 'Huge Test',
1404
1408
  data,
1405
1409
  schema,
1406
- uischema
1407
- }
1410
+ uischema,
1411
+ },
1408
1412
  ]);