ember-cp-validations
Version:
Ember computed property based validation library
37 lines (31 loc) • 585 B
JavaScript
import EmberObject from '@ember/object';
/**
* @module Validations
* @class Error
*/
export default EmberObject.extend({
/**
* The error validator type
* @property type
* @type {String}
*/
type: null,
/**
* The error message
* @property message
* @type {String}
*/
message: null,
/**
* The attribute that the error belongs to
* @property attribute
* @type {String}
*/
attribute: null,
/**
* The parent attribute that the error belongs to
* @property parentAttribute
* @type {String}
*/
parentAttribute: null,
});