From 20e138ccc59825171d9161d5818d2f36bd7ac54d Mon Sep 17 00:00:00 2001 From: Jon Harmon Date: Sun, 31 May 2026 16:59:50 -0500 Subject: [PATCH] Update snapshots for dev S7 and redoc --- man/dot-pkg_inform.Rd | 4 ++-- man/dot-pkg_warn.Rd | 4 ++-- tests/testthat/_snaps/components-schema.md | 2 +- ...rity_scheme-oauth2-authorization_code_flow.md | 8 ++++---- ...nents-security_scheme-oauth2-implicit_flow.md | 4 ++-- .../components-security_scheme-oauth2-scopes.md | 10 +++++----- ...mponents-security_scheme-oauth2-token_flow.md | 6 +++--- .../_snaps/components-security_scheme_details.md | 6 +++--- .../_snaps/components-security_schemes.md | 4 ++-- tests/testthat/_snaps/info-license.md | 6 +++--- tests/testthat/_snaps/info.md | 6 +++--- tests/testthat/_snaps/security.md | 2 +- .../testthat/_snaps/servers-server_variables.md | 6 +++--- .../_snaps/servers-string_replacements.md | 16 ++++++++-------- tests/testthat/_snaps/zz-rapid.md | 4 ++-- 15 files changed, 44 insertions(+), 44 deletions(-) diff --git a/man/dot-pkg_inform.Rd b/man/dot-pkg_inform.Rd index a9c5464..1b5118a 100644 --- a/man/dot-pkg_inform.Rd +++ b/man/dot-pkg_inform.Rd @@ -28,8 +28,8 @@ prefixed by "\{package\}-message-".} \item{message_env}{(\code{environment}) The execution environment to use to evaluate variables in error messages.} -\item{...}{Additional parameters passed to \code{\link[cli:cli_abort]{cli::cli_inform()}} and on to -\code{\link[rlang:abort]{rlang::inform()}}.} +\item{...}{Additional parameters passed to \code{\link[cli:cli_inform]{cli::cli_inform()}} and on to +\code{\link[rlang:inform]{rlang::inform()}}.} } \value{ \code{NULL}, invisibly (called for warning side effect). diff --git a/man/dot-pkg_warn.Rd b/man/dot-pkg_warn.Rd index b20532f..e949b81 100644 --- a/man/dot-pkg_warn.Rd +++ b/man/dot-pkg_warn.Rd @@ -28,8 +28,8 @@ prefixed by "\{package\}-warning-".} \item{message_env}{(\code{environment}) The execution environment to use to evaluate variables in error messages.} -\item{...}{Additional parameters passed to \code{\link[cli:cli_abort]{cli::cli_warn()}} and on to -\code{\link[rlang:abort]{rlang::warn()}}.} +\item{...}{Additional parameters passed to \code{\link[cli:cli_warn]{cli::cli_warn()}} and on to +\code{\link[rlang:warn]{rlang::warn()}}.} } \value{ \code{NULL}, invisibly (called for warning side effect). diff --git a/tests/testthat/_snaps/components-schema.md b/tests/testthat/_snaps/components-schema.md index a5604ef..406687a 100644 --- a/tests/testthat/_snaps/components-schema.md +++ b/tests/testthat/_snaps/components-schema.md @@ -3,7 +3,7 @@ Code class_schema(type = "string", nullable = NULL) Condition - Error: + Error in `class_schema()`: ! object is invalid: - `nullable` must have the same length as `type` - `type` has 1 value. diff --git a/tests/testthat/_snaps/components-security_scheme-oauth2-authorization_code_flow.md b/tests/testthat/_snaps/components-security_scheme-oauth2-authorization_code_flow.md index 7b61abc..45847e9 100644 --- a/tests/testthat/_snaps/components-security_scheme-oauth2-authorization_code_flow.md +++ b/tests/testthat/_snaps/components-security_scheme-oauth2-authorization_code_flow.md @@ -3,7 +3,7 @@ Code class_oauth2_authorization_code_flow("a") Condition - Error: + Error in `class_oauth2_authorization_code_flow()`: ! object is invalid: - `token_url` must have the same length as `authorization_url` - `authorization_url` has 1 value. @@ -14,7 +14,7 @@ Code class_oauth2_authorization_code_flow(token_url = "a") Condition - Error: + Error in `class_oauth2_authorization_code_flow()`: ! object is invalid: - When `authorization_url` is not defined, `token_url` must be empty. - `token_url` has 1 value. @@ -24,7 +24,7 @@ Code class_oauth2_authorization_code_flow(refresh_url = "a") Condition - Error: + Error in `class_oauth2_authorization_code_flow()`: ! object is invalid: - When `authorization_url` is not defined, `refresh_url` must be empty. - `refresh_url` has 1 value. @@ -34,7 +34,7 @@ Code class_oauth2_authorization_code_flow(scopes = c(a = "a")) Condition - Error: + Error in `class_oauth2_authorization_code_flow()`: ! object is invalid: - When `authorization_url` is not defined, `scopes` must be empty. - `scopes` has 1 value. diff --git a/tests/testthat/_snaps/components-security_scheme-oauth2-implicit_flow.md b/tests/testthat/_snaps/components-security_scheme-oauth2-implicit_flow.md index 848065a..d0ce881 100644 --- a/tests/testthat/_snaps/components-security_scheme-oauth2-implicit_flow.md +++ b/tests/testthat/_snaps/components-security_scheme-oauth2-implicit_flow.md @@ -3,7 +3,7 @@ Code class_oauth2_implicit_flow(refresh_url = "a") Condition - Error: + Error in `class_oauth2_implicit_flow()`: ! object is invalid: - When `authorization_url` is not defined, `refresh_url` must be empty. - `refresh_url` has 1 value. @@ -13,7 +13,7 @@ Code class_oauth2_implicit_flow(scopes = c(a = "a")) Condition - Error: + Error in `class_oauth2_implicit_flow()`: ! object is invalid: - When `authorization_url` is not defined, `scopes` must be empty. - `scopes` has 1 value. diff --git a/tests/testthat/_snaps/components-security_scheme-oauth2-scopes.md b/tests/testthat/_snaps/components-security_scheme-oauth2-scopes.md index f59c2c9..0c01f2a 100644 --- a/tests/testthat/_snaps/components-security_scheme-oauth2-scopes.md +++ b/tests/testthat/_snaps/components-security_scheme-oauth2-scopes.md @@ -3,7 +3,7 @@ Code class_scopes("a") Condition - Error: + Error in `class_scopes()`: ! object is invalid: - `description` must have the same length as `name` - `name` has 1 value. @@ -14,7 +14,7 @@ Code class_scopes("a", letters) Condition - Error: + Error in `class_scopes()`: ! object is invalid: - `description` must have the same length as `name` - `name` has 1 value. @@ -25,7 +25,7 @@ Code class_scopes(letters, "a") Condition - Error: + Error in `class_scopes()`: ! object is invalid: - `description` must have the same length as `name` - `name` has 26 values. @@ -36,7 +36,7 @@ Code class_scopes(character(), "a") Condition - Error: + Error in `class_scopes()`: ! object is invalid: - When `name` is not defined, `description` must be empty. - `description` has 1 value. @@ -46,7 +46,7 @@ Code class_scopes("a", character()) Condition - Error: + Error in `class_scopes()`: ! object is invalid: - `description` must have the same length as `name` - `name` has 1 value. diff --git a/tests/testthat/_snaps/components-security_scheme-oauth2-token_flow.md b/tests/testthat/_snaps/components-security_scheme-oauth2-token_flow.md index 83baa6a..3752e39 100644 --- a/tests/testthat/_snaps/components-security_scheme-oauth2-token_flow.md +++ b/tests/testthat/_snaps/components-security_scheme-oauth2-token_flow.md @@ -3,7 +3,7 @@ Code class_oauth2_token_flow(refresh_url = "a") Condition - Error: + Error in `class_oauth2_token_flow()`: ! object is invalid: - When `token_url` is not defined, `refresh_url` must be empty. - `refresh_url` has 1 value. @@ -13,7 +13,7 @@ Code class_oauth2_token_flow(scopes = c(a = "a")) Condition - Error: + Error in `class_oauth2_token_flow()`: ! object is invalid: - When `token_url` is not defined, `scopes` must be empty. - `scopes` has 1 value. @@ -58,7 +58,7 @@ Code class_oauth2_token_flow(mean) Condition - Error: + Error in `class_oauth2_token_flow()`: ! object properties are invalid: - @token_url must be , not diff --git a/tests/testthat/_snaps/components-security_scheme_details.md b/tests/testthat/_snaps/components-security_scheme_details.md index c2cb05e..1ccc580 100644 --- a/tests/testthat/_snaps/components-security_scheme_details.md +++ b/tests/testthat/_snaps/components-security_scheme_details.md @@ -3,7 +3,7 @@ Code class_security_scheme_details(letters) Condition - Error: + Error in `class_security_scheme_details()`: ! object is invalid: - All values must be objects. - Bad values at 1. @@ -13,7 +13,7 @@ Code class_security_scheme_details(list(letters, letters)) Condition - Error: + Error in `class_security_scheme_details()`: ! object is invalid: - All values must be objects. - Bad values at 1 and 2. @@ -24,7 +24,7 @@ class_security_scheme_details(class_api_key_security_scheme(), letters, class_oauth2_security_scheme(), letters) Condition - Error: + Error in `class_security_scheme_details()`: ! object is invalid: - All values must be objects. - Bad values at 2 and 4. diff --git a/tests/testthat/_snaps/components-security_schemes.md b/tests/testthat/_snaps/components-security_schemes.md index 7812367..3425def 100644 --- a/tests/testthat/_snaps/components-security_schemes.md +++ b/tests/testthat/_snaps/components-security_schemes.md @@ -14,7 +14,7 @@ Code class_security_schemes("a") Condition - Error: + Error in `class_security_schemes()`: ! object is invalid: - `details` must have the same length as `name` - `name` has 1 value. @@ -23,7 +23,7 @@ class_security_schemes(details = class_security_scheme_details( class_api_key_security_scheme("parm", "query"))) Condition - Error: + Error in `class_security_schemes()`: ! object is invalid: - When `name` is not defined, `details` must be empty. - `details` has 1 value. diff --git a/tests/testthat/_snaps/info-license.md b/tests/testthat/_snaps/info-license.md index 3f1253b..994e0b5 100644 --- a/tests/testthat/_snaps/info-license.md +++ b/tests/testthat/_snaps/info-license.md @@ -54,7 +54,7 @@ Code class_license(name = "A", identifier = "A", url = "https://example.com") Condition - Error: + Error in `class_license()`: ! object is invalid: - At most one of @identifier and @url must be supplied. @@ -63,7 +63,7 @@ Code class_license(identifier = "A") Condition - Error: + Error in `class_license()`: ! object is invalid: - When `name` is not defined, `identifier` must be empty. - `identifier` has 1 value. @@ -73,7 +73,7 @@ Code class_license(url = "https://example.com") Condition - Error: + Error in `class_license()`: ! object is invalid: - When `name` is not defined, `url` must be empty. - `url` has 1 value. diff --git a/tests/testthat/_snaps/info.md b/tests/testthat/_snaps/info.md index 69c3613..d1e6d1d 100644 --- a/tests/testthat/_snaps/info.md +++ b/tests/testthat/_snaps/info.md @@ -3,7 +3,7 @@ Code class_info(title = "My API") Condition - Error: + Error in `class_info()`: ! object is invalid: - `version` must have the same length as `title` - `title` has 1 value. @@ -14,7 +14,7 @@ Code class_info(version = "My API") Condition - Error: + Error in `class_info()`: ! object is invalid: - When `title` is not defined, `version` must be empty. - `version` has 1 value. @@ -24,7 +24,7 @@ Code class_info(summary = "My API") Condition - Error: + Error in `class_info()`: ! object is invalid: - When `title` is not defined, `summary` must be empty. - `summary` has 1 value. diff --git a/tests/testthat/_snaps/security.md b/tests/testthat/_snaps/security.md index 4b87067..520ba4f 100644 --- a/tests/testthat/_snaps/security.md +++ b/tests/testthat/_snaps/security.md @@ -3,7 +3,7 @@ Code class_security(required_scopes = "a") Condition - Error: + Error in `class_security()`: ! object is invalid: - When `name` is not defined, `required_scopes` must be empty. - `required_scopes` has 1 value. diff --git a/tests/testthat/_snaps/servers-server_variables.md b/tests/testthat/_snaps/servers-server_variables.md index e217b44..c7b9305 100644 --- a/tests/testthat/_snaps/servers-server_variables.md +++ b/tests/testthat/_snaps/servers-server_variables.md @@ -3,7 +3,7 @@ Code class_server_variables(letters) Condition - Error: + Error in `class_server_variables()`: ! object is invalid: - All values must be objects. - Bad values at 1. @@ -13,7 +13,7 @@ Code class_server_variables(list(letters, letters)) Condition - Error: + Error in `class_server_variables()`: ! object is invalid: - All values must be objects. - Bad values at 1 and 2. @@ -24,7 +24,7 @@ class_server_variables(class_string_replacements(), letters, class_string_replacements(), letters) Condition - Error: + Error in `class_server_variables()`: ! object is invalid: - All values must be objects. - Bad values at 2 and 4. diff --git a/tests/testthat/_snaps/servers-string_replacements.md b/tests/testthat/_snaps/servers-string_replacements.md index 5e3f41a..881b32e 100644 --- a/tests/testthat/_snaps/servers-string_replacements.md +++ b/tests/testthat/_snaps/servers-string_replacements.md @@ -14,7 +14,7 @@ Code class_string_replacements("a") Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `default` must have the same length as `name` - `name` has 1 value. @@ -25,7 +25,7 @@ Code class_string_replacements("a", letters) Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `default` must have the same length as `name` - `name` has 1 value. @@ -36,7 +36,7 @@ Code class_string_replacements(letters, "a") Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `default` must have the same length as `name` - `name` has 26 values. @@ -47,7 +47,7 @@ Code class_string_replacements(character(), "a") Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - When `name` is not defined, `default` must be empty. - `default` has 1 value. @@ -69,7 +69,7 @@ Code class_string_replacements("a", "b", enum = list("a", "b")) Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `enum` must be empty or have the same length as `name` - `name` has 1 value. @@ -80,7 +80,7 @@ Code class_string_replacements("a", "b", description = c("a", "b")) Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `description` must be empty or have the same length as `name` - `name` has 1 value. @@ -91,7 +91,7 @@ Code class_string_replacements(name = "a", default = "b", enum = "a") Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `default` must be in `enum`. - "b" is not in "a". @@ -102,7 +102,7 @@ class_string_replacements(name = c("a", "b"), default = c("b", "a"), enum = list( "a", "a")) Condition - Error: + Error in `class_string_replacements()`: ! object is invalid: - `default` must be in `enum`. - "b" is not in "a". diff --git a/tests/testthat/_snaps/zz-rapid.md b/tests/testthat/_snaps/zz-rapid.md index f1e12ba..d6f5160 100644 --- a/tests/testthat/_snaps/zz-rapid.md +++ b/tests/testthat/_snaps/zz-rapid.md @@ -15,7 +15,7 @@ "https://api.gigantic-server.com/v1"), description = c("Development server", "Staging server", "Production server"))) Condition - Error: + Error in `class_rapid()`: ! object is invalid: - When `info` is not defined, `servers` must be empty. - `servers` has 3 values. @@ -28,7 +28,7 @@ class_api_key_security_scheme("this_one", location = "header")))), security = class_security(name = "an_undefined_one")) Condition - Error: + Error in `class_rapid()`: ! object is invalid: - `security` must be one of the `security_schemes` defined in `components`. - "an_undefined_one" is not in "the_defined_one".