@bluedot-innovation/models 3.0.7-alpha.1 → 3.0.8-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.8
2
+ - Remove custom required messages
3
+
1
4
  ## 3.0.7
2
5
  - `proximityUUID` is now mandatory
3
6
 
package/models/Zone.js CHANGED
@@ -46,10 +46,10 @@ let geofeatureSchema = new Schema({},
46
46
 
47
47
  let zoneSchema = new Schema({
48
48
  _id: {type: String, default: uuidv4},
49
- name: {type: String, required: [true, 'name is required']},
49
+ name: {type: String, required: true},
50
50
  minimumRetriggerTime: {
51
51
  type: Number,
52
- required: [true, 'minimumRetriggerTime is required'],
52
+ required: true,
53
53
  min: 60,
54
54
  max: 359940,
55
55
  validate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "3.0.7-alpha.1",
3
+ "version": "3.0.8-alpha.1",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",