Skip to content

Commit

Permalink
fix(PropertyValue): Narrow schema for value property
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 13, 2021
1 parent bbe6dbe commit 0c058fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions schema/PropertyValue.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ properties:
value:
'@id': schema:value
description: The value of the property.
allOf:
- $ref: Node
anyOf:
- type: boolean
- type: integer
- type: number
- type: string
$comment: |
This follows the expected types of https://schema.org/value except for `StructuredValue`,
which at the time of writing was not implemented in this schema.
required:
- value

0 comments on commit 0c058fb

Please sign in to comment.