@hestia-earth/data-validation 0.40.5 → 0.41.0
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 +10 -0
- package/index.mjs +10 -0
- package/package.json +4 -4
- package/validation.json +10 -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",
|
|
@@ -308,6 +313,11 @@ var validations = [
|
|
|
308
313
|
level: "warning",
|
|
309
314
|
message: "should use irrigated water regime"
|
|
310
315
|
},
|
|
316
|
+
{
|
|
317
|
+
function: "validate_cropResidueManagement_products",
|
|
318
|
+
level: "error",
|
|
319
|
+
message: "cropResidue product is not accounted for by the cropResidueManagement practices"
|
|
320
|
+
},
|
|
311
321
|
{
|
|
312
322
|
function: "validate_soilTexture",
|
|
313
323
|
level: "error",
|
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",
|
|
@@ -306,6 +311,11 @@ var validations = [
|
|
|
306
311
|
level: "warning",
|
|
307
312
|
message: "should use irrigated water regime"
|
|
308
313
|
},
|
|
314
|
+
{
|
|
315
|
+
function: "validate_cropResidueManagement_products",
|
|
316
|
+
level: "error",
|
|
317
|
+
message: "cropResidue product is not accounted for by the cropResidueManagement practices"
|
|
318
|
+
},
|
|
309
319
|
{
|
|
310
320
|
function: "validate_soilTexture",
|
|
311
321
|
level: "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/data-validation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
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": "^39.0.0",
|
|
64
|
+
"@hestia-earth/schema": "^39.0.0",
|
|
65
|
+
"@hestia-earth/schema-validation": "^39.0.0",
|
|
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",
|
|
@@ -295,6 +300,11 @@
|
|
|
295
300
|
"level": "warning",
|
|
296
301
|
"message": "should use irrigated water regime"
|
|
297
302
|
},
|
|
303
|
+
{
|
|
304
|
+
"function": "validate_cropResidueManagement_products",
|
|
305
|
+
"level": "error",
|
|
306
|
+
"message": "cropResidue product is not accounted for by the cropResidueManagement practices"
|
|
307
|
+
},
|
|
298
308
|
{
|
|
299
309
|
"function": "validate_soilTexture",
|
|
300
310
|
"level": "error",
|