@hestia-earth/data-validation 0.40.5 → 0.40.6
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/index.js +5 -0
- package/index.mjs +5 -0
- package/package.json +4 -4
- package/validation.json +5 -0
package/index.js
CHANGED
|
@@ -173,6 +173,11 @@ var validations = [
|
|
|
173
173
|
level: "error",
|
|
174
174
|
message: "must equal to endDate - startDate in decimal years"
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
function: "validate_functionalArea",
|
|
178
|
+
level: "warning",
|
|
179
|
+
message: "should specify functionalArea or site area"
|
|
180
|
+
},
|
|
176
181
|
{
|
|
177
182
|
function: "validate_method_not_relevant",
|
|
178
183
|
level: "warning",
|
package/index.mjs
CHANGED
|
@@ -171,6 +171,11 @@ var validations = [
|
|
|
171
171
|
level: "error",
|
|
172
172
|
message: "must equal to endDate - startDate in decimal years"
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
function: "validate_functionalArea",
|
|
176
|
+
level: "warning",
|
|
177
|
+
message: "should specify functionalArea or site area"
|
|
178
|
+
},
|
|
174
179
|
{
|
|
175
180
|
function: "validate_method_not_relevant",
|
|
176
181
|
level: "warning",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/data-validation",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.6",
|
|
4
4
|
"description": "HESTIA Data Validation library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@commitlint/cli": "^17.8.1",
|
|
61
61
|
"@commitlint/config-conventional": "^17.8.1",
|
|
62
62
|
"@hestia-earth/eslint-config": "^0.1.1",
|
|
63
|
-
"@hestia-earth/json-schema": "^
|
|
64
|
-
"@hestia-earth/schema": "^
|
|
65
|
-
"@hestia-earth/schema-validation": "^
|
|
63
|
+
"@hestia-earth/json-schema": "^38.3.1",
|
|
64
|
+
"@hestia-earth/schema": "^38.3.1",
|
|
65
|
+
"@hestia-earth/schema-validation": "^38.3.1",
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
67
67
|
"@typescript-eslint/parser": "^5.62.0",
|
|
68
68
|
"eslint": "^7.32.0",
|
package/validation.json
CHANGED
|
@@ -160,6 +160,11 @@
|
|
|
160
160
|
"level": "error",
|
|
161
161
|
"message": "must equal to endDate - startDate in decimal years"
|
|
162
162
|
},
|
|
163
|
+
{
|
|
164
|
+
"function": "validate_functionalArea",
|
|
165
|
+
"level": "warning",
|
|
166
|
+
"message": "should specify functionalArea or site area"
|
|
167
|
+
},
|
|
163
168
|
{
|
|
164
169
|
"function": "validate_method_not_relevant",
|
|
165
170
|
"level": "warning",
|