Skip to main content

validate_refinement_content

Function validate_refinement_content 

Source
pub fn validate_refinement_content(
    kind: &str,
    content: &Value,
) -> Result<bool, String>
Expand description

validateRefinementContent(kind, content): Ok(true) for a valid skill or instruction, Ok(true) for the kinds it does not check (TS undefined), an error naming the problem otherwise.