Refactored schemas to make properties all implicitely children

This commit is contained in:
Stefan Zermatten
2019-04-03 12:38:01 +02:00
parent 28ffcc87b4
commit 681e669e76
19 changed files with 37 additions and 62 deletions

View File

@@ -1,7 +1,6 @@
import SimpleSchema from 'simpl-schema';
import schema from '/imports/api/schema.js';
import PropertySchema from '/imports/api/creature/subSchemas/PropertySchema.js';
import ChildSchema from '/imports/api/parenting/ChildSchema.js';
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
import VARIABLE_NAME_REGEX from '/imports/constants/VARIABLE_NAME_REGEX.js';
@@ -31,7 +30,6 @@ ClassSchema.extend(ColorSchema);
Classes.attachSchema(ClassSchema);
Classes.attachSchema(PropertySchema);
Classes.attachSchema(ChildSchema);
const insertClass = new ValidatedMethod({
name: 'Classes.methods.insert',