Skip to content

Commit 279b716

Browse files
fix(schemas): all "string" => "minLength": 1
1 parent 9241680 commit 279b716

33 files changed

+100
-47
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"

src/opengeodeweb_viewer/rpc/mesh/polygons/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/polygons/schemas/polygon_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/polygons/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/polygons/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/polyhedrons/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/polyhedrons/schemas/polyhedron_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/polyhedrons/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/polyhedrons/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/schemas/color.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"color": {
9-
"type": "object",
10+
"type": "object",
1011
"properties": {
1112
"r": {
1213
"type": "integer",

src/opengeodeweb_viewer/rpc/mesh/schemas/deregister.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
},
910
"required": [

src/opengeodeweb_viewer/rpc/mesh/schemas/opacity.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
"opacity": {
910
"type": "number",

src/opengeodeweb_viewer/rpc/mesh/schemas/register.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
"file_name": {
9-
"type": "string"
10+
"type": "string",
11+
"minLength": 1
1012
}
1113
},
1214
"required": [

src/opengeodeweb_viewer/rpc/mesh/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/model/schemas/apply_textures.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"textures": {
910
"type": "array",
1011
"elements": {
1112
"type": "object",
1213
"properties": {
1314
"texture_name": {
14-
"type": "string"
15+
"type": "string",
16+
"minLength": 1
1517
},
1618
"texture_file_name": {
17-
"type": "string"
19+
"type": "string",
20+
"minLength": 1
1821
}
1922
},
2023
"required": [

src/opengeodeweb_viewer/rpc/model/schemas/deregister.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
},
910
"required": [

src/opengeodeweb_viewer/rpc/model/schemas/register.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
"file_name": {
9-
"type": "string"
10+
"type": "string",
11+
"minLength": 1
1012
}
1113
},
1214
"required": [

src/opengeodeweb_viewer/rpc/model/schemas/set_components_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/model/schemas/set_components_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/model/schemas/set_corners_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/model/schemas/set_mesh_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/viewer/schemas/picked_ids.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"ids": {
1212
"type": "array",
1313
"items": {
14-
"type": "string"
14+
"type": "string",
15+
"minLength": 1
1516
}
1617
}
1718
},

0 commit comments

Comments
 (0)