Skip to content

Commit e1af465

Browse files
committed
FIX: schema options for dateCreated & dateModified
1 parent 5d3bc99 commit e1af465

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

schemas/Bundle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ properties:
2121
title: Date Created
2222
type: string
2323
description: The date and optionally time that this Bundle was created.
24-
oneOf:
24+
anyOf:
2525
- format: date
2626
- format: date-time
2727

2828
dateModified:
2929
title: Date Modified
3030
type: string
3131
description: The date and optionally time that this Bundle was last modified.
32-
oneOf:
32+
anyOf:
3333
- format: date
3434
- format: date-time
3535

schemas/Language.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ properties:
6767
title: Date Created
6868
type: string
6969
description: The date and optionally time that this Language object was created.
70-
oneOf:
70+
anyOf:
7171
- format: date
7272
- format: date-time
7373

7474
dateModified:
7575
title: Date Modified
7676
type: string
7777
description: The date and optionally time that this Language object was last modified.
78-
oneOf:
78+
anyOf:
7979
- format: date
8080
- format: date-time
8181

schemas/Lexeme.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ properties:
7777
dateCreated:
7878
title: Date Created
7979
type: string
80-
description: The date and optionally time that this lexical item was created
81-
oneOf:
80+
description: The date and optionally time that this lexical item was created.
81+
anyOf:
8282
- format: date
8383
- format: date-time
8484

8585
dateModified:
8686
title: Date Modified
8787
type: string
88-
description: The date and optionally time that this lexical item was last modified
89-
oneOf:
88+
description: The date and optionally time that this lexical item was last modified.
89+
anyOf:
9090
- format: date
9191
- format: date-time
9292

schemas/Location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ properties:
3535
title: Date Created
3636
type: string
3737
description: 'The date and optionally time that this Location object was created.'
38-
oneOf:
38+
anyOf:
3939
- format: date
4040
- format: date-time
4141

4242
dateModified:
4343
title: Date Modified
4444
type: string
4545
description: 'The date and optionally time that this Location was last modified.'
46-
oneOf:
46+
anyOf:
4747
- format: date
4848
- format: date-time
4949

schemas/Media.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ properties:
4040
title: Date Created
4141
type: string
4242
description: 'The date and optionally time that this metadata object was originally created. *Not* the date the media file was created. For that, see the `dateRecorded` property.'
43-
oneOf:
43+
anyOf:
4444
- format: date
4545
- format: date-time
4646

4747
dateModified:
4848
title: Date Modified
4949
type: string
5050
description: 'The date and optionally time that this metadata was last modified. *Not* the date that the media file was modified.'
51-
oneOf:
51+
anyOf:
5252
- format: date
5353
- format: date-time
5454

5555
dateRecorded:
5656
title: Date Recorded
5757
type: string
5858
description: 'The date and optionally time that this media file was recorded or photographed. Or, if the file is a scan of field notes, the date that the scan was made. *Not* the date that this metadata object was created. For that, see the `dateCreated` property.'
59-
oneOf:
59+
anyOf:
6060
- format: date
6161
- format: date-time
6262

schemas/Note.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ properties:
1919
title: Date Created
2020
type: string
2121
description: The date and optionally time that this note was created.
22-
oneOf:
22+
anyOf:
2323
- format: date
2424
- format: date-time
2525

2626
dateModified:
2727
title: Date Modified
2828
type: string
2929
description: The date and optionally time that this note was last modified.
30-
oneOf:
30+
anyOf:
3131
- format: date
3232
- format: date-time
3333

schemas/Person.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ properties:
129129
title: Start Date
130130
type: string
131131
description: The date a person began work on a project, a language documentation, the transcription of a text, or another form of data collection or research. This field is most useful when the Person object is being used as part of the `Language.people` and `Text.people` fields.
132-
oneOf:
132+
anyOf:
133133
- format: date
134134
- format: date-time
135135

136136
endDate:
137137
title: End Date
138138
type: string
139139
description: The date a person finished work on a project, a language documentation, the transcription of a text, or another form of data collection or research. This field is most useful when the Person object is being used as part of the `Language.people` and `Text.people` fields.
140-
oneOf:
140+
anyOf:
141141
- format: date
142142
- format: date-time
143143

schemas/Text.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ properties:
4343
title: Date Created
4444
type: string
4545
description: 'The date and optionally time that this Text was created in the database (**not** the date it was recorded; see the `dateRecorded` property instead).'
46-
oneOf:
46+
anyOf:
4747
- format: date
4848
- format: date-time
4949

5050
dateModified:
5151
title: Date Modified
5252
type: string
5353
description: 'The date and optionally time that this Text object was last modified (**not** the date that the recording of the text was modified).'
54-
oneOf:
54+
anyOf:
5555
- format: date
5656
- format: date-time
5757

5858
dateRecorded:
5959
title: Date Recorded
6060
type: string
6161
description: 'The date and optionally time that this text was recorded.'
62-
oneOf:
62+
anyOf:
6363
- format: date
6464
- format: date-time
6565

0 commit comments

Comments
 (0)