function addErrorObject(formSchema) {
	if (!formSchema.errors) {
		return { errors: {}, ...formSchema };
	}
	return formSchema;
}
/**
 * add error object on a formSchema if it doesn't exist
 * @param {FormSchema} formSchema
 * @return {FormSchema}
 */
add error object on a formSchema if it doesn't exist
@param {FormSchema} formSchema
@return {FormSchema}
add error object on a formSchema if it doesn ' t exist @param { FormSchema } formSchema @return { FormSchema }
function addErrorObject(formSchema) {
	if (!formSchema.errors) {
		return { errors: {}, ...formSchema };
	}
	return formSchema;
}
function addErrorObject ( formSchema ) { if ( ! formSchema . errors ) { return { errors : { } , ... formSchema } ; } return formSchema ; }
add error object on a formSchema if it doesn't exist
 @param {FormSchema} formSchema
 @return {FormSchema}
add error object on a formSchema if it doesn ' t exist @param { FormSchema } formSchema @return { FormSchema }