Added schema defaults to all schemas to prevent strings from being trimmed
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
|
||||
const ColorSchema = ({optional = false} = {}) => ({
|
||||
type: String,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
|
||||
const DeathSavesSchema = new SimpleSchema({
|
||||
const DeathSavesSchema = schema({
|
||||
pass: {
|
||||
type: SimpleSchema.Integer,
|
||||
min: 0,
|
||||
|
||||
Reference in New Issue
Block a user