Added calculation errors to attributes and toggles

This commit is contained in:
Thaum Rystra
2020-05-28 20:33:08 +02:00
parent cd413ba64f
commit 9236f3e477
9 changed files with 83 additions and 44 deletions

View File

@@ -1,4 +1,5 @@
import SimpleSchema from 'simpl-schema';
import ErrorSchema from '/imports/api/properties/subSchemas/ErrorSchema.js';
const ToggleSchema = new SimpleSchema({
name: {
@@ -32,8 +33,8 @@ const ComputedOnlyToggleSchema = new SimpleSchema({
type: Array,
optional: true,
},
'errors.$':{
type: String,
'errors.$': {
type: ErrorSchema,
},
});