Skip to content

Commit 54165c6

Browse files
Merge pull request #53 from Geode-solutions/fix/strings_in_schemas
fix(typo): elements => items
2 parents 1e169c4 + a2a99f2 commit 54165c6

34 files changed

+108
-52
lines changed

src/opengeodeweb_viewer/rpc/generic/schemas/deregister.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
"properties": {
55
"viewer_object": {
66
"type": "string",
7-
"enum": ["mesh", "model"]
7+
"minLength": 1,
8+
"enum": [
9+
"mesh",
10+
"model"
11+
]
812
},
913
"id": {
10-
"type": "string"
14+
"type": "string",
15+
"minLength": 1
1116
}
1217
},
1318
"required": [

src/opengeodeweb_viewer/rpc/generic/schemas/register.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
"properties": {
55
"viewer_object": {
66
"type": "string",
7-
"enum": ["mesh", "model"]
7+
"minLength": 1,
8+
"enum": [
9+
"mesh",
10+
"model"
11+
]
812
},
913
"id": {
10-
"type": "string"
14+
"type": "string",
15+
"minLength": 1
1116
},
1217
"file_name": {
13-
"type": "string"
18+
"type": "string",
19+
"minLength": 1
1420
}
1521
},
1622
"required": [

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"color": {
910
"type": "object",

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"size": {
910
"type": "integer"

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"name": {
9-
"type": "string"
10+
"type": "string",
11+
"minLength": 1
1012
}
1113
},
1214
"required": [

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"visibility": {
910
"type": "boolean"

src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"color": {
910
"type": "object",

src/opengeodeweb_viewer/rpc/mesh/points/schemas/size.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"size": {
910
"type": "number"

src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"name": {
9-
"type": "string"
10+
"type": "string",
11+
"minLength": 1
1012
}
1113
},
1214
"required": [

src/opengeodeweb_viewer/rpc/mesh/points/schemas/visibility.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"visibility": {
910
"type": "boolean"

0 commit comments

Comments
 (0)