Closed AuspeXeu closed 11 years ago
The following model definition fails with the error message, that the values does not match the spec.
cs(this).model({ 'data:test': { value: 42, valid: 'object|number' } })
same with
cs(this).model({ 'data:test': { value: { firstname: 'Hans', lastname: 'Zimmer' }, valid: 'number|object' } })
Exact error message Error: [ComponentJS]: ERROR: model: model field "data:test" has default value {"firstname":"Hans","lastname":"Zimmer"}, which does not validate against validation "number|object"
Now fixed by documentation update.
The following model definition fails with the error message, that the values does not match the spec.
same with
Exact error message Error: [ComponentJS]: ERROR: model: model field "data:test" has default value {"firstname":"Hans","lastname":"Zimmer"}, which does not validate against validation "number|object"