Files
DiceCloud/app/imports/api/properties/subSchemas/InlineComputationSchema.js
2021-04-11 14:47:41 +02:00

21 lines
423 B
JavaScript

import SimpleSchema from 'simpl-schema';
import ErrorSchema from '/imports/api/properties/subSchemas/ErrorSchema.js';
const InlineComputationSchema = new SimpleSchema({
// The part between bracers {}
calculation: {
type: String,
},
result: {
type: String,
optional: true,
},
errors: {
type: Array,
optional: true,
},
'errors.$': ErrorSchema,
});
export default InlineComputationSchema;