Skip to content

Commit

Permalink
fix: tweaks to various schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 12, 2019
1 parent b8bb10b commit d14f6ba
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
4 changes: 4 additions & 0 deletions schema/CreativeWork.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ properties:
anyOf:
- $ref: URL.schema.yaml
- $ref: CreativeWork.schema.yaml
text:
'@id': schema:text
description: The textual content of this CreativeWork.
type: string
2 changes: 1 addition & 1 deletion schema/MediaObject.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ properties:
contentUrl:
'@id': schema:contentUrl
description: Actual bytes of the media object, for example the image file or video file.
anyOf:
allOf:
- $ref: URL.schema.yaml
11 changes: 9 additions & 2 deletions schema/Thing.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ description: The most generic type of item https://schema.org/Thing.
type: object
properties:
type:
# Note: this is a special property analagous to JSON-LD's `@type` keyword
# This is a special property analagous to JSON-LD's `@type` keyword
# and so should not have a `@id` since it is not a property.
description: The name of the type
# It is extended with the titles of all descendant types during
# the generation of schema.json files.
description: The name of the type and all descendant types.
type: string
enum: [Thing]
alternateNames:
Expand All @@ -25,5 +27,10 @@ properties:
'@id': schema:name
description: The name of the item.
type: string
url:
'@id': schema:url
description: The URL of the item.
allOf:
- $ref: URL.schema.yaml
required:
- type
7 changes: 5 additions & 2 deletions schema/software/Expression.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ title: Expression
'@id': Expression
$extends: SoftwareSourceCode.schema.yaml
role: secondary
status: Experimental
status: experimental
description: An expression.
properties:
value: {}
value:
'@id': stencila:value
allOf:
- $ref: ../Node.schema.yaml
3 changes: 2 additions & 1 deletion schema/software/SoftwareSourceCode.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ properties:
'@id': schema:codeRepository
description: |
Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex)
$ref: URL.schema.yaml
allOf:
- $ref: URL.schema.yaml
codeSampleType:
'@id': schema:codeSampleType
description: |
Expand Down

0 comments on commit d14f6ba

Please sign in to comment.