validate_rating_spec: Check rating-specification fields

View source: R/validation.R

validate_rating_specR Documentation

Check rating-specification fields

Description

Normalize a rating specification and check its value sources, calculation types, and required lookup, input, or custom-function fields.

Usage

validate_rating_spec(rating_spec, ...)

Arguments

rating_spec

A data frame containing the rating specification. It must contain term_name and calculation_type; omitted optional columns are added during normalization.

...

Additional arguments accepted for backward compatibility and currently ignored.

Value

Invisibly returns TRUE if validation succeeds. Otherwise, the function stops with an error.

Examples

ex <- example_rating_plan()

isTRUE(
  validate_rating_spec(
    ex$plan$rating_spec
  )
)

ratingtables documentation built on Sept. 6, 2026, 1:06 a.m.