Skip to content

Commit 7bbd6c7

Browse files
committed
Updated schemas, added MultiPolygon, updated modules
1 parent 82c78e3 commit 7bbd6c7

File tree

6 files changed

+162
-113
lines changed

6 files changed

+162
-113
lines changed

package-lock.json

Lines changed: 42 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dendra-web-api",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "Dendra public facing REST API.",
55
"license": "BSD-2-Clause-FreeBSD",
66
"author": "J. Scott Smith <[email protected]>",
@@ -32,18 +32,18 @@
3232
"node": ">=6.11.0"
3333
},
3434
"dependencies": {
35-
"@dendra-science/api-hooks-common": "0.0.1",
35+
"@dendra-science/api-hooks-common": "0.0.2",
3636
"@dendra-science/math": "0.0.1",
3737
"@dendra-science/utils": "0.0.1",
38-
"ajv": "^5.5.1",
38+
"ajv": "^5.5.2",
3939
"babel-runtime": "^6.26.0",
4040
"body-parser": "^1.18.2",
4141
"compression": "^1.7.1",
4242
"cors": "^2.8.4",
4343
"express": "^4.16.2",
4444
"feathers": "^2.2.3",
4545
"feathers-authentication": "^1.3.1",
46-
"feathers-authentication-hooks": "^0.1.5",
46+
"feathers-authentication-hooks": "^0.1.6",
4747
"feathers-authentication-jwt": "^0.3.2",
4848
"feathers-authentication-local": "^0.4.4",
4949
"feathers-configuration": "^0.4.2",
@@ -54,21 +54,21 @@
5454
"feathers-rest": "^1.8.1",
5555
"feathers-sequelize": "^2.4.0",
5656
"feathers-socketio": "^2.0.1",
57-
"mathjs": "^3.17.0",
57+
"mathjs": "^3.18.0",
5858
"mongodb": "^2.2.33",
5959
"mysql2": "^1.5.1",
6060
"passport": "^0.4.0",
6161
"pug": "^2.0.0-rc.4",
6262
"request": "^2.83.0",
63-
"sequelize": "^4.27.0",
63+
"sequelize": "^4.28.6",
6464
"winston": "^2.4.0"
6565
},
6666
"devDependencies": {
6767
"babel-cli": "^6.26.0",
6868
"babel-core": "^6.26.0",
6969
"babel-preset-es2015-node6": "^0.4.0",
7070
"chai": "^4.1.2",
71-
"eslint": "^4.13.0",
71+
"eslint": "^4.13.1",
7272
"eslint-config-standard": "^10.2.1",
7373
"eslint-plugin-import": "^2.8.0",
7474
"eslint-plugin-node": "^5.2.1",

schema/datastream.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"datapoints_config": {
4343
"type": "array",
4444
"description": "Service configuration used for fetching datapoints",
45+
"minItems": 1,
4546
"items": {
4647
"type": "object",
4748
"properties": {
@@ -74,20 +75,19 @@
7475
"path"
7576
],
7677
"additionalProperties": false
77-
},
78-
"minItems": 1
78+
}
7979
},
8080
"derivation_description": {
8181
"type": "string",
8282
"example": "Calculated server-side based on the Celsius datastream."
8383
},
8484
"derived_from_datastream_ids": {
8585
"type": "array",
86+
"minItems": 1,
8687
"items": {
8788
"$ref": "types.json#/definitions/datastreamId",
8889
"example": "592f155746a1b867a114e021"
89-
},
90-
"minItems": 1
90+
}
9191
},
9292
"description": {
9393
"$ref": "types.json#/definitions/description",

schema/membership.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
"roles": {
2020
"type": "array",
2121
"description": "The person's roles within this organization (e.g. 'admin', 'contact', 'curator', 'manager')",
22+
"minItems": 1,
2223
"items": {
2324
"type": "string",
2425
"example": "contact"
25-
},
26-
"minItems": 1
26+
}
2727
}
2828
},
2929
"properties": {

schema/organization.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,26 @@
88
"_id": {
99
"$ref": "types.json#/definitions/organizationId"
1010
},
11+
"description": {
12+
"$ref": "types.json#/definitions/description",
13+
"example": "The UC Natural Reserve System is a network of protected natural areas throughout California used for monitoring, education, and research. As part of a climate change monitoring grant, each reserve has a weather station on site."
14+
},
1115
"email": {
1216
"$ref": "types.json#/definitions/email",
1317
"example": "[email protected]"
1418
},
15-
"name": {
19+
"full_name": {
1620
"type": "string",
1721
"example": "University of California Natural Reserve System"
1822
},
23+
"name": {
24+
"type": "string",
25+
"example": "UC Natural Reserve System"
26+
},
27+
"slug": {
28+
"$ref": "types.json#/definitions/slug",
29+
"example": "ucnrs"
30+
},
1931
"url": {
2032
"$ref": "types.json#/definitions/url",
2133
"example": "http://www.ucnrs.org"
@@ -25,8 +37,11 @@
2537
"_id": {"$ref": "#/definitions/_id"},
2638
"created_at": {"$ref": "types.json#/definitions/createdAt"},
2739
"updated_at": {"$ref": "types.json#/definitions/updatedAt"},
40+
"description": {"$ref": "#/definitions/description"},
2841
"email": {"$ref": "#/definitions/email"},
42+
"full_name": {"$ref": "#/definitions/full_name"},
2943
"name": {"$ref": "#/definitions/name"},
44+
"slug": {"$ref": "#/definitions/slug"},
3045
"url": {"$ref": "#/definitions/url"}
3146
},
3247
"required": [
@@ -46,8 +61,11 @@
4661
"schema": {
4762
"type": "object",
4863
"properties": {
64+
"description": {"$ref": "#/definitions/description"},
4965
"email": {"$ref": "#/definitions/email"},
66+
"full_name": {"$ref": "#/definitions/full_name"},
5067
"name": {"$ref": "#/definitions/name"},
68+
"slug": {"$ref": "#/definitions/slug"},
5169
"url": {"$ref": "#/definitions/url"}
5270
}
5371
},
@@ -65,8 +83,11 @@
6583
"schema": {
6684
"type": "object",
6785
"properties": {
86+
"description": {"$ref": "#/definitions/description"},
6887
"email": {"$ref": "#/definitions/email"},
88+
"full_name": {"$ref": "#/definitions/full_name"},
6989
"name": {"$ref": "#/definitions/name"},
90+
"slug": {"$ref": "#/definitions/slug"},
7091
"url": {"$ref": "#/definitions/url"}
7192
}
7293
},

0 commit comments

Comments
 (0)