Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Jul 8, 2024
1 parent b6ccb43 commit 5ab11b1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: orderly2
Title: Orderly Next Generation
Version: 1.99.19
Version: 1.99.20
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Robert", "Ashton", role = "aut"),
Expand Down
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-08 14:51:14.625617
* From outpack @ bff49fcc97711b1c3c2540bb18f784c7a5bf76c2 (git-null)

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]+$"
}
2 changes: 1 addition & 1 deletion scripts/update_schemas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

root <- here::here()

outpack_branch <- "main"
outpack_branch <- "git-null"
url <- "https://github.com/mrc-ide/outpack"
tmp <- tempfile()
repo <- gert::git_clone(url, tmp, outpack_branch)
Expand Down

0 comments on commit 5ab11b1

Please sign in to comment.