Skip to content

Commit

Permalink
fix(CreativeWork): Allow an array of nodes
Browse files Browse the repository at this point in the history
This was done because of the numerous breakages the narrower type had in Encoda.
Note that this property is actually already
narrowed in several places e.g. `Article.content`.
I suggest that we look at naroowing this later
perhaps even dropping this property in
favour of tighter typings on override properties.
  • Loading branch information
nokome committed Jun 21, 2021
1 parent 4d1b761 commit a13cbfc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions schema/CreativeWork.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ properties:
anyOf:
- type: array
items:
$ref: BlockContent
- type: array
items:
$ref: InlineContent
$ref: Node
- type: string
dateCreated:
'@id': schema:dateCreated
Expand Down

0 comments on commit a13cbfc

Please sign in to comment.