This repository was archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Bug 1507521 - Finish library per RFC 128 #1
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| $schema: "/schemas/common/metadata-metaschema.json#" | ||
| $id: "/schemas/common/manifest-v3.json#" | ||
| title: "Taskcluster Service Manifest" | ||
| description: |- | ||
| Manifest of taskcluster service definitions available in a taskcluster service deployment. | ||
| These manifests are served from `$ROOT_URL/references/manifest.json`. | ||
| metadata: | ||
| name: manifest | ||
| version: 3 | ||
| type: object | ||
| properties: | ||
| references: | ||
| type: array | ||
| description: "Array of URLs of reference documents" | ||
| items: | ||
| type: string | ||
| formt: uri | ||
| additionalProperties: false | ||
| required: | ||
| - references |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| $schema: "http://json-schema.org/draft-06/schema#" | ||
| $id: "/schemas/common/metadata-metaschema.json#" | ||
| title: "JSON-Schema Meta-Schema, with the addition of a `metadata` property" | ||
| allOf: | ||
| - {$ref: "http://json-schema.org/draft-06/schema#"} | ||
| - type: object | ||
| properties: | ||
| metadata: | ||
| title: "Metadata for this schema" | ||
| description: | | ||
| Metadata identifying the documents that the schema document describes, | ||
| giving both a name (a category of document) and a version (to allow | ||
| several versions of the same category). Consumers of the documents can | ||
| consult the schema metadata to determine how to process the document. | ||
|
|
||
| Any changes to a schema that require changes to consumers of the described | ||
| documents should be accompanied by a version increase. | ||
| type: object | ||
| properties: | ||
| name: | ||
| title: "Name of the document category" | ||
| description: | | ||
| This is used to identify the category of document for later consumption. | ||
| It is also used to determine schema id's. Common values for Taskcluster | ||
| references are `manifest`, `exchanges`, and `api`. | ||
| type: string | ||
| version: | ||
| title: "Version of the document format" | ||
| type: integer | ||
| additionalProperties: false | ||
| required: | ||
| - version | ||
| - name | ||
| required: | ||
| - metadata | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about:
;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like having a document be its own metaschema could lead to trouble? What's the benefit here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe this even works(?) I suspect not, I suspect
$schemaneeds to be a fully qualified URI...Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a way of decorating this schema too with metadata, and enabling versioning of it, should we wish to add additional metadata later, for example...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think anything would read that version, though (and anyway, wouldn't it have to read the version of its metaschema, and just keep going until it looped? And what if the loop was a cycle of more than one metaschema?). Can we just keep this simple?