Skip to content

Commit 0186883

Browse files
authored
Merge pull request #82 from ropensci/prepare-release-1-5-0
Prepare CRAN release
2 parents f942ba3 + 8df0afa commit 0186883

File tree

12 files changed

+23
-21
lines changed

12 files changed

+23
-21
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: jsonvalidate
22
Title: Validate 'JSON' Schema
3-
Version: 1.4.2
3+
Version: 1.5.0
44
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
55
email = "[email protected]"),
66
person("Rob", "Ashton", role = "aut"),
@@ -29,7 +29,7 @@ Suggests:
2929
rmarkdown,
3030
testthat,
3131
withr
32-
RoxygenNote: 7.2.3
32+
RoxygenNote: 7.3.2
3333
Roxygen: list(markdown = TRUE)
3434
VignetteBuilder: knitr
3535
Encoding: UTF-8

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2016
1+
YEAR: 2024
22
COPYRIGHT HOLDER: Rich FitzJohn

R/schema.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
##' @description Interact with JSON schemas, using them to validate
66
##' json strings or serialise objects to JSON safely.
77
##'
8-
##' This interface supercedes [jsonvalidate::json_schema] and changes
8+
##' This interface supersedes [jsonvalidate::json_schema] and changes
99
##' some default arguments. While the old interface is not going
1010
##' away any time soon, users are encouraged to switch to this
1111
##' interface, which is what we will develop in the future.

R/serialise.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
##' particular:
66
##'
77
##' * R has no scalar types so it is not clear if `1` should be
8-
##' serialised as a number or a vector of length 1; jsonlite
8+
##' serialised as a number or a vector of length 1; `jsonlite`
99
##' provides support for "automatically unboxing" such values
1010
##' (assuming that length-1 vectors are scalars) or never unboxing
1111
##' them unless asked to using [jsonlite::unbox]
@@ -20,7 +20,7 @@
2020
##'
2121
##' These issues are somewhat lessened when we have a schema because
2222
##' we know what our target type looks like. This function attempts
23-
##' to use the schema to guide serialsation of json safely. Currently
23+
##' to use the schema to guide serialisation of json safely. Currently
2424
##' it only supports detecting the appropriate treatment of length-1
2525
##' vectors, but we will expand functionality over time.
2626
##'
@@ -43,7 +43,7 @@
4343
##' schemas contained within a `oneOf` block (or similar) will not be
4444
##' recursed into.
4545
##'
46-
##' @section: Warning:
46+
##' # Warning
4747
##'
4848
##' Direct use of this function will be slow! If you are going to
4949
##' serialise more than one or two objects with a single schema, you

R/validate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
##' scope this option if you want to quieten it within code you do
2222
##' not control. Alternatively, setting the option
2323
##' `jsonvalidate.no_note_imjv` to `FALSE` will print the message
24-
##' even noninteractively.
24+
##' even non-interactively.
2525
##'
2626
##' Updating the engine should be simply a case of adding `engine
2727
##' = "ajv"` to your `json_validator` or `json_validate`
@@ -80,7 +80,7 @@
8080
##'
8181
##' @return A function that can be used to validate a
8282
##' schema. Additionally, the function has two attributes assigned:
83-
##' `v8` which is the javascript context (used internally) and
83+
##' `v8` which is the JavaScript context (used internally) and
8484
##' `engine`, which contains the name of the engine used.
8585
##'
8686
##' @export

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jsonvalidate_js <- function() {
66

77

88
## Via Gabor, remove NOTE about Imports while not loading R6 at load.
9-
function() {
9+
ignore_unused_imports <- function() {
1010
R6::R6Class
1111
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- badges: start -->
44
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
55
[![R-CMD-check](https://github.com/ropensci/jsonvalidate/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/jsonvalidate/actions/workflows/R-CMD-check.yaml)
6-
[![codecov.io](https://codecov.io/github/ropensci/jsonvalidate/coverage.svg?branch=master)](https://codecov.io/github/ropensci/jsonvalidate?branch=master)
6+
[![codecov.io](https://codecov.io/github/ropensci/jsonvalidate/coverage.svg?branch=master)](https://app.codecov.io/github/ropensci/jsonvalidate?branch=master)
77
[![](http://www.r-pkg.org/badges/version/jsonvalidate)](https://cran.r-project.org/package=jsonvalidate)
88
<!-- badges: end -->
99

inst/WORDLIST

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
CMD
2+
R's
13
ajv
24
arg
35
codecov
6+
deserialise
47
imjv
58
io
69
js
@@ -10,3 +13,4 @@ metaschema
1013
org
1114
ropensci
1215
subschema
16+
unboxable

man/json_schema.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/json_serialise.Rd

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)