File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,6 +147,16 @@ module.exports = {
147147 formal : { type : 'string' }
148148 } )
149149 } ,
150+ Document : {
151+ type : 'object' ,
152+ properties : merge ( ConclusionProperties , {
153+ type : { type : 'string' } ,
154+ extracted : { type : 'boolean' } ,
155+ textType : { type : 'string' } ,
156+ text : { type : 'string' } ,
157+ attribution : { $ref : '#/definitions/Attribution' }
158+ } )
159+ } ,
150160 Event : {
151161 type : 'object' ,
152162 properties : merge ( SubjectProperties , {
Original file line number Diff line number Diff line change @@ -122,6 +122,80 @@ it('validates', function(){
122122 resource : 'http://repository'
123123 }
124124 }
125+ ] ,
126+ agents : [
127+ {
128+ id : 'agent' ,
129+ identifiers : {
130+ $ : 'ident'
131+ } ,
132+ names : [
133+ {
134+ lang : 'en' ,
135+ value : 'Name'
136+ }
137+ ] ,
138+ homepage : {
139+ resource : 'http://homepage'
140+ } ,
141+ openid : {
142+ resource : 'http://openid'
143+ } ,
144+ accounts : [
145+ {
146+ accountName : 'jimbo'
147+ }
148+ ] ,
149+ emails : [
150+ {
151+ resource : 'http://email'
152+ }
153+ ] ,
154+ phones : [
155+ {
156+ resource : 'http://phone'
157+ }
158+ ] ,
159+ addresses : [
160+ {
161+ value : 'big long address' ,
162+ postalCode : '123456'
163+ }
164+ ] ,
165+ person : {
166+ resource : 'http://person'
167+ }
168+ }
169+ ] ,
170+ events : [
171+ {
172+ type : 'http://gedcomx.org/Marriage' ,
173+ date : {
174+ formal : '+2002-06-06'
175+ } ,
176+ place : {
177+ original : 'Her town, MN'
178+ } ,
179+ roles : [
180+ {
181+ person : {
182+ resource : 'http://groom'
183+ } ,
184+ type : 'http://gedcomx.org/Participant'
185+ }
186+ ]
187+ }
188+ ] ,
189+ documents : [
190+ {
191+ type : 'http://gedcomx.org/Abstract' ,
192+ extracted : false ,
193+ textType : 'plain' ,
194+ text : 'Lots of text' ,
195+ attribution : {
196+ created : 123456789
197+ }
198+ }
125199 ]
126200 } , gedxSchema ) ;
127201} ) ;
You can’t perform that action at this time.
0 commit comments