Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update schema #139

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions inst/schema/outpack/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"properties": {
"path": {
"description": "The path of the file",
"type": "string"
"$ref": "relative-path.json"
},
"hash": {
"$ref": "hash.json"
Expand Down Expand Up @@ -88,17 +88,16 @@
},
"files": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"here": {
"description": "The path of the file in this packet",
"type": "string"
"$ref": "relative-path.json"
},
"there": {
"description": "The path of the file within the upstream packet",
"type": "string"
"$ref": "relative-path.json"
}
},
"required": ["here", "there"]
Expand Down
9 changes: 9 additions & 0 deletions inst/schema/outpack/relative-path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "File path",
"description": "A relative cross-platform file path",
"version": "0.1.1",

"type": "string",
"pattern": "^([^<>:\"/\\\\|?*\\x00-\\x1f]+/)*[^<>:\"/\\\\|?*\\x00-\\x1f]+$"
}
Loading