enum warning

I have two questions regarding the enum:

1
Having a enum like that:

/**
 * @enum {String}
 * 
 * @properties={typeid:35,uuid:"852BE5EA-48E1-4783-8D13-B5ECEEF5BC53",variableType:-4}
 */
var TIPOSVENTAS = {
	FACTURAS:"F",
	PRESUPUESTOS:"P",
	ALBARANES:"A",
	TICKETS:"T",
	VENTAS:"V",
	ABONOS:"N",
	RESERVAS:"R",
	PROFORMAS:"O",
	PEDIDOSPROV:"D",
	ALBARANPROV:"B",
	FACTURAPROV:"C"
}

and I use it in a relation, it work good but it give me a warning:

“mismatched keys: Key type from scopes.m_enum.TIPOSVENTAS.ALBARANES does not match with type from tipo_docum.”

The field “tipo docum” is “STRING”

2 having anothe enum like that:

/**
 * @enum
 */
var CONSTANTS = {
    _0: 0,
    _1: 1,
    _NULL: null
}

You cannot use in a relation it give me that Error:

can you try if this works for you:

/**
* @enum
*/
var CONSTANTS = {
    _0: 0,
    _1: 1,
    /** @type {Number} */
    _NULL: null
}

Thanks for your reply but it doesn’t work.

I create a case