This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change approach to generating schema.json files
Closes #41
- Loading branch information
Showing
46 changed files
with
605 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,7 @@ contactPoint: | |
telephone: | ||
- '+649775673' | ||
departments: | ||
- type: organization | ||
- department.organization.yaml | ||
- type: Organization | ||
email: [email protected] | ||
funders: | ||
- type: Person | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
type: SoftwareSession | ||
environment: | ||
- name: StencilaMega | ||
type: Environment | ||
name: StencilaMega | ||
volumeMounts: | ||
- type: VolumeMount | ||
- type: Mount | ||
mountSource: /foo/bar | ||
mountDestination: /baz/bax | ||
cpuResource: | ||
type: ResourceParameters | ||
requested: 500 | ||
limit: 1000 | ||
resourceRequested: 500 | ||
resourceLimit: 1000 | ||
memoryResource: | ||
type: ResourceParameters | ||
requested: 1024 | ||
limit: 2048 | ||
resourceRequested: 1024 | ||
resourceLimit: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/Article.schema.json | ||
title: Article | ||
'@id': schema:Article | ||
allOf: | ||
- $ref: CreativeWork.schema.yaml | ||
- properties: | ||
content: | ||
'@id': stencila:content | ||
type: array | ||
items: | ||
$ref: Node.schema.yaml | ||
$extends: CreativeWork.schema.yaml | ||
properties: | ||
content: | ||
'@id': stencila:content | ||
description: The main content of the article. Equivalent to https://schema.org/articleBody. | ||
type: array | ||
items: | ||
$ref: Node.schema.yaml | ||
required: | ||
# See Google's list of required properties at | ||
# https://developers.google.com/search/docs/data-types/article#article_types | ||
- authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/Collection.schema.json | ||
title: Collection | ||
'@id': schema:Collection | ||
allOf: | ||
- $ref: CreativeWork.schema.yaml | ||
- properties: | ||
type: | ||
type: string | ||
enum: [Collection] | ||
parts: | ||
'@id': schema:hasParts | ||
type: array | ||
items: | ||
$ref: CreativeWork.schema.yaml | ||
$extends: CreativeWork.schema.yaml | ||
properties: | ||
parts: | ||
'@id': schema:hasParts | ||
type: array | ||
items: | ||
$ref: CreativeWork.schema.yaml | ||
required: | ||
- type | ||
- parts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/CreativeWork.schema.json | ||
title: CreativeWork | ||
description: The most generic kind of creative work, including books, movies, photographs, software programs, etc. https://schema.org/CreativeWork | ||
'@id': schema:CreativeWork | ||
allOf: | ||
- $ref: Thing.schema.yaml | ||
- properties: | ||
authors: | ||
'@id': schema:author | ||
description: The authors of this content. | ||
type: array | ||
items: | ||
anyOf: | ||
- $ref: Person.schema.yaml | ||
- $ref: Organization.schema.yaml | ||
citations: | ||
'@id': schema:citation | ||
description: Citations or references to another creative work, such as another publication, web page, scholarly article, etc. | ||
type: array | ||
items: | ||
anyOf: | ||
- type: string | ||
- $ref: CreativeWork.schema.yaml | ||
licenses: | ||
'@id': schema:license | ||
description: License documents that applies to this content, typically indicated by URL. | ||
type: array | ||
items: | ||
anyOf: | ||
- $ref: URL.schema.yaml | ||
- $ref: CreativeWork.schema.yaml | ||
$extends: Thing.schema.yaml | ||
role: base | ||
status: unstable | ||
description: The most generic kind of creative work, including books, movies, photographs, software programs, etc. https://schema.org/CreativeWork | ||
properties: | ||
authors: | ||
'@id': schema:author | ||
description: The authors of this content. | ||
type: array | ||
items: | ||
anyOf: | ||
- $ref: Person.schema.yaml | ||
- $ref: Organization.schema.yaml | ||
citations: | ||
'@id': schema:citation | ||
description: Citations or references to another creative work, such as another publication, web page, scholarly article, etc. | ||
type: array | ||
items: | ||
anyOf: | ||
- type: string | ||
- $ref: CreativeWork.schema.yaml | ||
licenses: | ||
'@id': schema:license | ||
description: License documents that applies to this content, typically indicated by URL. | ||
type: array | ||
items: | ||
anyOf: | ||
- $ref: URL.schema.yaml | ||
- $ref: CreativeWork.schema.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/Document.schema.json | ||
title: Document | ||
'@id': stencila:Document | ||
$extends: CreativeWork.schema.yaml | ||
status: experimental | ||
description: | | ||
An executable document. | ||
allOf: | ||
- $ref: CreativeWork.schema.yaml | ||
- properties: | ||
environment: | ||
'@id': stencila:environment | ||
description: | | ||
The computational environment in which the document should be executed. | ||
allOf: | ||
- $ref: Environment.schema.yaml | ||
body: | ||
'@id': stencila:body | ||
description: The body of the document. | ||
type: array | ||
properties: | ||
environment: | ||
'@id': stencila:environment | ||
description: | | ||
The computational environment in which the document should be executed. | ||
allOf: | ||
- $ref: Environment.schema.yaml | ||
body: | ||
'@id': stencila:body | ||
description: The body of the document. | ||
type: array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/ImageObject.schema.json | ||
title: ImageObject | ||
'@id': schema:ImageObject | ||
$extends: MediaObject.schema.yaml | ||
status: unstable | ||
role: supporting | ||
description: | | ||
An image file. https://schema.org/ImageObject | ||
allOf: | ||
- $ref: MediaObject.schema.yaml | ||
- properties: | ||
caption: | ||
'@id': schema:caption | ||
description: | | ||
The caption for this object. | ||
type: string | ||
properties: | ||
caption: | ||
'@id': schema:caption | ||
description: | | ||
The caption for this object. | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://stencila.github.com/schema/MediaObject.schema.json | ||
title: MediaObject | ||
'@id': schema:MediaObject | ||
$extends: CreativeWork.schema.yaml | ||
role: base | ||
status: unstable | ||
description: | | ||
A media object, such as an image, video, or audio object embedded in a web page or a | ||
downloadable dataset. https://schema.org/MediaObject | ||
allOf: | ||
- $ref: CreativeWork.schema.yaml | ||
- properties: | ||
contentUrl: | ||
'@id': schema:contentUrl | ||
description: Actual bytes of the media object, for example the image file or video file. | ||
anyOf: | ||
- $ref: URL.schema.yaml | ||
properties: | ||
contentUrl: | ||
'@id': schema:contentUrl | ||
description: Actual bytes of the media object, for example the image file or video file. | ||
anyOf: | ||
- $ref: URL.schema.yaml |
Oops, something went wrong.