Skip to content

Commit

Permalink
fix(CreativeWork): allow date and date-time formats
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 24, 2019
1 parent f209d40 commit 7f4d297
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions schema/CreativeWork.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,34 @@ properties:
dateCreated:
'@id': schema:dateCreated
description: Date/time of creation.
allOf:
anyOf:
- type: string
format: date
- type: string
format: date-time
dateModified:
'@id': schema:dateModified
description: Date/time of most recent modification.
allOf:
anyOf:
- type: string
format: date
- type: string
format: date-time
datePublished:
'@id': schema:datePublished
aliases:
# This assumes that a user specifying `date` means the date published
# and not the date modified or created
# and not the date modified or created.
- date
description: Date of first publication.
allOf:
anyOf:
# Although schema.org says expected values are `Date`, for
# consistency with `dateCreated` and `dateModified` we allow
# for `DateTime` as well.
- type: string
format: date
- type: string
format: date-time
editors:
description: |
Persons who edited the CreativeWork.
Expand Down

0 comments on commit 7f4d297

Please sign in to comment.