(values: Values, skipDefaults?: 1)
| 458 | : encodeIfJson(cell); |
| 459 | |
| 460 | const validateValues = (values: Values, skipDefaults?: 1): boolean => |
| 461 | objValidate( |
| 462 | skipDefaults ? values : addDefaultsToValues(values), |
| 463 | (value: Value, valueId: Id): boolean => |
| 464 | ifNotUndefined( |
| 465 | getValidatedValue(valueId, value), |
| 466 | (validValue) => { |
| 467 | values[valueId] = validValue; |
| 468 | return true; |
| 469 | }, |
| 470 | () => false, |
| 471 | ) as boolean, |
| 472 | () => valueInvalid(), |
| 473 | ); |
| 474 | |
| 475 | const getValidatedValue = (valueId: Id, value: Value): ValueOrUndefined => |
| 476 | hasValuesSchema |
no test coverage detected
searching dependent graphs…