Skip to content
Merged
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
4 changes: 2 additions & 2 deletions man/dot-pkg_inform.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/dot-pkg_warn.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/_snaps/components-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_schema(type = "string", nullable = NULL)
Condition
Error:
Error in `class_schema()`:
! <rapid::schema> object is invalid:
- `nullable` must have the same length as `type`
- `type` has 1 value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_oauth2_authorization_code_flow("a")
Condition
Error:
Error in `class_oauth2_authorization_code_flow()`:
! <rapid::oauth2_authorization_code_flow> object is invalid:
- `token_url` must have the same length as `authorization_url`
- `authorization_url` has 1 value.
Expand All @@ -14,7 +14,7 @@
Code
class_oauth2_authorization_code_flow(token_url = "a")
Condition
Error:
Error in `class_oauth2_authorization_code_flow()`:
! <rapid::oauth2_authorization_code_flow> object is invalid:
- When `authorization_url` is not defined, `token_url` must be empty.
- `token_url` has 1 value.
Expand All @@ -24,7 +24,7 @@
Code
class_oauth2_authorization_code_flow(refresh_url = "a")
Condition
Error:
Error in `class_oauth2_authorization_code_flow()`:
! <rapid::oauth2_authorization_code_flow> object is invalid:
- When `authorization_url` is not defined, `refresh_url` must be empty.
- `refresh_url` has 1 value.
Expand All @@ -34,7 +34,7 @@
Code
class_oauth2_authorization_code_flow(scopes = c(a = "a"))
Condition
Error:
Error in `class_oauth2_authorization_code_flow()`:
! <rapid::oauth2_authorization_code_flow> object is invalid:
- When `authorization_url` is not defined, `scopes` must be empty.
- `scopes` has 1 value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_oauth2_implicit_flow(refresh_url = "a")
Condition
Error:
Error in `class_oauth2_implicit_flow()`:
! <rapid::oauth2_implicit_flow> object is invalid:
- When `authorization_url` is not defined, `refresh_url` must be empty.
- `refresh_url` has 1 value.
Expand All @@ -13,7 +13,7 @@
Code
class_oauth2_implicit_flow(scopes = c(a = "a"))
Condition
Error:
Error in `class_oauth2_implicit_flow()`:
! <rapid::oauth2_implicit_flow> object is invalid:
- When `authorization_url` is not defined, `scopes` must be empty.
- `scopes` has 1 value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_scopes("a")
Condition
Error:
Error in `class_scopes()`:
! <rapid::scopes> object is invalid:
- `description` must have the same length as `name`
- `name` has 1 value.
Expand All @@ -14,7 +14,7 @@
Code
class_scopes("a", letters)
Condition
Error:
Error in `class_scopes()`:
! <rapid::scopes> object is invalid:
- `description` must have the same length as `name`
- `name` has 1 value.
Expand All @@ -25,7 +25,7 @@
Code
class_scopes(letters, "a")
Condition
Error:
Error in `class_scopes()`:
! <rapid::scopes> object is invalid:
- `description` must have the same length as `name`
- `name` has 26 values.
Expand All @@ -36,7 +36,7 @@
Code
class_scopes(character(), "a")
Condition
Error:
Error in `class_scopes()`:
! <rapid::scopes> object is invalid:
- When `name` is not defined, `description` must be empty.
- `description` has 1 value.
Expand All @@ -46,7 +46,7 @@
Code
class_scopes("a", character())
Condition
Error:
Error in `class_scopes()`:
! <rapid::scopes> object is invalid:
- `description` must have the same length as `name`
- `name` has 1 value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_oauth2_token_flow(refresh_url = "a")
Condition
Error:
Error in `class_oauth2_token_flow()`:
! <rapid::oauth2_token_flow> object is invalid:
- When `token_url` is not defined, `refresh_url` must be empty.
- `refresh_url` has 1 value.
Expand All @@ -13,7 +13,7 @@
Code
class_oauth2_token_flow(scopes = c(a = "a"))
Condition
Error:
Error in `class_oauth2_token_flow()`:
! <rapid::oauth2_token_flow> object is invalid:
- When `token_url` is not defined, `scopes` must be empty.
- `scopes` has 1 value.
Expand Down Expand Up @@ -58,7 +58,7 @@
Code
class_oauth2_token_flow(mean)
Condition
Error:
Error in `class_oauth2_token_flow()`:
! <rapid::oauth2_token_flow> object properties are invalid:
- @token_url must be <character>, not <closure>

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/components-security_scheme_details.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_security_scheme_details(letters)
Condition
Error:
Error in `class_security_scheme_details()`:
! <rapid::security_scheme_details> object is invalid:
- All values must be <security_scheme> objects.
- Bad values at 1.
Expand All @@ -13,7 +13,7 @@
Code
class_security_scheme_details(list(letters, letters))
Condition
Error:
Error in `class_security_scheme_details()`:
! <rapid::security_scheme_details> object is invalid:
- All values must be <security_scheme> objects.
- Bad values at 1 and 2.
Expand All @@ -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()`:
! <rapid::security_scheme_details> object is invalid:
- All values must be <security_scheme> objects.
- Bad values at 2 and 4.
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/components-security_schemes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Code
class_security_schemes("a")
Condition
Error:
Error in `class_security_schemes()`:
! <rapid::security_schemes> object is invalid:
- `details` must have the same length as `name`
- `name` has 1 value.
Expand All @@ -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()`:
! <rapid::security_schemes> object is invalid:
- When `name` is not defined, `details` must be empty.
- `details` has 1 value.
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/info-license.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
Code
class_license(name = "A", identifier = "A", url = "https://example.com")
Condition
Error:
Error in `class_license()`:
! <rapid::license> object is invalid:
- At most one of @identifier and @url must be supplied.

Expand All @@ -63,7 +63,7 @@
Code
class_license(identifier = "A")
Condition
Error:
Error in `class_license()`:
! <rapid::license> object is invalid:
- When `name` is not defined, `identifier` must be empty.
- `identifier` has 1 value.
Expand All @@ -73,7 +73,7 @@
Code
class_license(url = "https://example.com")
Condition
Error:
Error in `class_license()`:
! <rapid::license> object is invalid:
- When `name` is not defined, `url` must be empty.
- `url` has 1 value.
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_info(title = "My API")
Condition
Error:
Error in `class_info()`:
! <rapid::info> object is invalid:
- `version` must have the same length as `title`
- `title` has 1 value.
Expand All @@ -14,7 +14,7 @@
Code
class_info(version = "My API")
Condition
Error:
Error in `class_info()`:
! <rapid::info> object is invalid:
- When `title` is not defined, `version` must be empty.
- `version` has 1 value.
Expand All @@ -24,7 +24,7 @@
Code
class_info(summary = "My API")
Condition
Error:
Error in `class_info()`:
! <rapid::info> object is invalid:
- When `title` is not defined, `summary` must be empty.
- `summary` has 1 value.
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_security(required_scopes = "a")
Condition
Error:
Error in `class_security()`:
! <rapid::security> object is invalid:
- When `name` is not defined, `required_scopes` must be empty.
- `required_scopes` has 1 value.
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/servers-server_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
class_server_variables(letters)
Condition
Error:
Error in `class_server_variables()`:
! <rapid::server_variables> object is invalid:
- All values must be <string_replacements> objects.
- Bad values at 1.
Expand All @@ -13,7 +13,7 @@
Code
class_server_variables(list(letters, letters))
Condition
Error:
Error in `class_server_variables()`:
! <rapid::server_variables> object is invalid:
- All values must be <string_replacements> objects.
- Bad values at 1 and 2.
Expand All @@ -24,7 +24,7 @@
class_server_variables(class_string_replacements(), letters,
class_string_replacements(), letters)
Condition
Error:
Error in `class_server_variables()`:
! <rapid::server_variables> object is invalid:
- All values must be <string_replacements> objects.
- Bad values at 2 and 4.
Expand Down
16 changes: 8 additions & 8 deletions tests/testthat/_snaps/servers-string_replacements.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Code
class_string_replacements("a")
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `default` must have the same length as `name`
- `name` has 1 value.
Expand All @@ -25,7 +25,7 @@
Code
class_string_replacements("a", letters)
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `default` must have the same length as `name`
- `name` has 1 value.
Expand All @@ -36,7 +36,7 @@
Code
class_string_replacements(letters, "a")
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `default` must have the same length as `name`
- `name` has 26 values.
Expand All @@ -47,7 +47,7 @@
Code
class_string_replacements(character(), "a")
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- When `name` is not defined, `default` must be empty.
- `default` has 1 value.
Expand All @@ -69,7 +69,7 @@
Code
class_string_replacements("a", "b", enum = list("a", "b"))
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `enum` must be empty or have the same length as `name`
- `name` has 1 value.
Expand All @@ -80,7 +80,7 @@
Code
class_string_replacements("a", "b", description = c("a", "b"))
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `description` must be empty or have the same length as `name`
- `name` has 1 value.
Expand All @@ -91,7 +91,7 @@
Code
class_string_replacements(name = "a", default = "b", enum = "a")
Condition
Error:
Error in `class_string_replacements()`:
! <rapid::string_replacements> object is invalid:
- `default` must be in `enum`.
- "b" is not in "a".
Expand All @@ -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()`:
! <rapid::string_replacements> object is invalid:
- `default` must be in `enum`.
- "b" is not in "a".
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/zz-rapid.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"https://api.gigantic-server.com/v1"), description = c("Development server",
"Staging server", "Production server")))
Condition
Error:
Error in `class_rapid()`:
! <rapid::rapid> object is invalid:
- When `info` is not defined, `servers` must be empty.
- `servers` has 3 values.
Expand All @@ -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()`:
! <rapid::rapid> object is invalid:
- `security` must be one of the `security_schemes` defined in `components`.
- "an_undefined_one" is not in "the_defined_one".
Expand Down
Loading