Skip to content

Commit 90a50fa

Browse files
committed
Update docs
1 parent 6865c45 commit 90a50fa

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

R/base-model.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ model_fields <- function(model_fn) {
99
#' @param default A default value for the field.
1010
#' @param optional Whether the field is optional.
1111
#' @param alias alias that can be used in [model_dump()]
12-
#' @param error_msg,... **not used** at the moment
12+
#' @param error_msg A custom error message.
13+
#' @param ... **not used** at the moment
1314
#' @returns A model field.
1415
#' @export
1516
model_field <- function(fn, default = NA, optional = FALSE, alias = NULL, error_msg = NULL, ...) {
@@ -72,14 +73,9 @@ base_model <- function(fields = list(), ...,
7273
}
7374

7475
if (!inherits(.x, CLASS_MODEL_FIELD)) {
75-
# .x <- model_field(fn = .x)
7676
.x <- as_model_field(.x)
7777
}
7878

79-
#if (is.character(.x$fn)) {
80-
# .x$fn <- type_check_fn_from_str(.x$fn)
81-
#}
82-
8379
return(.x)
8480
}, fields)
8581

man/model_field.Rd

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

0 commit comments

Comments
 (0)