-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.schema.js
36 lines (34 loc) · 985 Bytes
/
input.schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// type: The type of variable represented
// default: A default value if none has been provided
// desc: A human-readible description of what the variable represents
// value: The supplied value for the variable
// enum: A limited selection of values the variable can take on
export default {
floors: {
type: Number,
default: 1,
desc: 'The total number of floors in the building',
test: () => 'Test',
// value: 5,
},
elevator: {
type: Boolean,
default: false,
desc: 'Whether or not the building has an elevator',
// value: false,
},
type: {
type: String,
default: 'multi-family',
desc: 'The property type, e.g. multi-family, mixed-use, etc.',
enum: ['multi-family', 'mixed-use'],
// value: 'multi-family',
},
resUnits: {
type: Number,
default: 1,
desc: 'The number of residential units the property has',
// value: 18,
},
};
// const requiredInputs = ['floors', 'elevator', 'type', 'resUnits'];