Files
DiceCloud/app/imports/api/properties/subSchemas/RollDetailsSchema.js
2025-01-14 13:21:43 +02:00

22 lines
448 B
JavaScript

import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
const RollDetailsSchema = TypedSimpleSchema.from({
number: {
type: Number,
},
diceSize: {
type: Number,
},
values: {
type: Array,
defaultValue: [],
maxCount: STORAGE_LIMITS.diceRollValuesCount,
},
'values.$': {
type: Number,
},
});
export default RollDetailsSchema;