Updated simpl-schema and collection2, started untangling the mess that made
This commit is contained in:
11
app/imports/api/creature/subSchemas/ColorSchema.js
Normal file
11
app/imports/api/creature/subSchemas/ColorSchema.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
const ColorSchema = new SimpleSchema({
|
||||
color: {
|
||||
type: String,
|
||||
defaultValue: "#9E9E9E",
|
||||
// match hex colors of the form #A23 or #A23f56
|
||||
regEx: /^#([a-f0-9]{3}){1,2}\b$/i,
|
||||
},
|
||||
});
|
||||
|
||||
export default ColorSchema;
|
||||
@@ -1,4 +1,5 @@
|
||||
const deathSaveSchema = new SimpleSchema({
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
const DeathSavesSchema = new SimpleSchema({
|
||||
pass: {
|
||||
type: Number,
|
||||
min: 0,
|
||||
@@ -21,4 +22,4 @@ const deathSaveSchema = new SimpleSchema({
|
||||
},
|
||||
});
|
||||
|
||||
export default deathSaveSchema;
|
||||
export default DeathSavesSchema;
|
||||
Reference in New Issue
Block a user