validator/cpp/engine/wasm/validator.js
/**
 * Transforms the fields in a ValidationError from number to string
 * @param {Object!} error a ValidationError whose values are numeric
 * @return {Object!}
 */
Transforms the fields in a ValidationError from number to string
@param {Object!} error a ValidationError whose values are numeric
@return {Object!}
Transforms the fields in a ValidationError from number to string @param { Object! } error a ValidationError whose values are numeric @return { Object! }
function stringifyValidationErrorFields(error) {
  return {
    ...error,
    params: error.paramsList,
    severity: SEVERITY.nameByNumber.get(error.severity),
    code: CODE.nameByNumber.get(error.code),
  };
}
function stringifyValidationErrorFields ( error ) { return { ... error , params : error . paramsList , severity : SEVERITY . nameByNumber . get ( error . severity ) , code : CODE . nameByNumber . get ( error . code ) , } ; }
Transforms the fields in a ValidationError from number to string
 @param {Object!}
Transforms the fields in a ValidationError from number to string @param { Object! }