validator/cpp/engine/wasm/validator.js
/**
 * Creates a ValidationError by transforming the fields from string to number
 * @param {Object!} error an object whose strusture is the same as
 *   ValidationError, except that the fields are strings.
 * @return {Object!} a ValidationError
 */
Creates a ValidationError by transforming the fields from string to number
@param {Object!} error an object whose strusture is the same as
ValidationError, except that the fields are strings.
@return {Object!} a ValidationError
Creates a ValidationError by transforming the fields from string to number @param { Object! } error an object whose strusture is the same as ValidationError except that the fields are strings . @return { Object! } a ValidationError
function digitizeValidationErrorFields(error) {
  return {
    ...error,
    severity: SEVERITY.numberByName.get(error.severity),
    code: CODE.numberByName.get(error.code),
  };
}
function digitizeValidationErrorFields ( error ) { return { ... error , severity : SEVERITY . numberByName . get ( error . severity ) , code : CODE . numberByName . get ( error . code ) , } ; }
Creates a ValidationError by transforming the fields from string to number
 @param {Object!}
Creates a ValidationError by transforming the fields from string to number @param { Object! }