Made names optional for all collections

closes #92
This commit is contained in:
Stefan Zermatten
2017-07-13 10:39:43 +02:00
parent 1e67afbe6f
commit 99c72d1e10
11 changed files with 12 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
Items = new Mongo.Collection("items");
Schemas.Item = new SimpleSchema({
name: {type: String, defaultValue: "New Item", trim: false},
name: {type: String, optional: true, trim: false, defaultValue: "New Item"},
plural: {type: String, optional: true, trim: false},
description:{type: String, optional: true, trim: false},
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, //id of owner