Denormalised inline calculations to property documents, needs to be referenced by UI still
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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: ErrorSchema,
|
||||
});
|
||||
|
||||
export default InlineComputationSchema;
|
||||
Reference in New Issue
Block a user