Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Jul 10, 2024
1 parent 64b7b2a commit 13ee4a7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions inst/schema/outpack/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Imported from outpack

* Schema version 0.1.1
* Imported on 2023-08-17 10:00:21.068664
* From outpack @ ba2bb5bf44a56b3c0ce78128fa419375df109fe3 (main)
* Imported on 2024-07-10 10:46:08.587491
* From outpack @ f521a290636c01c777d6550bca78e0a8e0f051f8 (main)

Do not make changes to files here, they will be overwritten
Run ./scripts/update_schemas to update
3 changes: 2 additions & 1 deletion inst/schema/outpack/git.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"type": "string"
}
}
}
},
"required": ["url", "sha", "branch"]
}
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]+$"
}

0 comments on commit 13ee4a7

Please sign in to comment.