Skip to content

Commit 7d1e63d

Browse files
committed
fix(schemas): Add minLength property to these schemas
1 parent 3ac5bf2 commit 7d1e63d

12 files changed

+112
-51
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"route": "/allowed_objects",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"filename": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"supported_feature": {
10-
"type": ["string", "null"]
13+
"type": [
14+
"string",
15+
"null"
16+
]
1117
}
1218
},
13-
"required": ["filename", "supported_feature"],
19+
"required": [
20+
"filename",
21+
"supported_feature"
22+
],
1423
"additionalProperties": false
15-
}
24+
}

src/opengeodeweb_back/routes/schemas/create_point.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"type": "object",
77
"properties": {
88
"title": {
9-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
1011
},
1112
"x": {
1213
"type": "number"
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
22
"route": "/geode_objects_and_output_extensions",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"input_geode_object": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"filename": {
10-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1115
}
1216
},
13-
"required": ["input_geode_object", "filename"],
17+
"required": [
18+
"input_geode_object",
19+
"filename"
20+
],
1421
"additionalProperties": false
15-
}
22+
}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
{
22
"route": "/geographic_coordinate_systems",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"input_geode_object": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
}
912
},
10-
"required": ["input_geode_object"],
13+
"required": [
14+
"input_geode_object"
15+
],
1116
"additionalProperties": false
12-
}
17+
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
22
"route": "/inspect_file",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"filename": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"input_geode_object": {
10-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1115
}
1216
},
13-
"required": ["filename", "input_geode_object"],
17+
"required": [
18+
"filename",
19+
"input_geode_object"
20+
],
1421
"additionalProperties": false
15-
}
22+
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
22
"route": "/missing_files",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"input_geode_object": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"filename": {
10-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1115
}
1216
},
13-
"required": ["input_geode_object", "filename"],
17+
"required": [
18+
"input_geode_object",
19+
"filename"
20+
],
1421
"additionalProperties": false
15-
}
22+
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
22
"route": "/polygon_attribute_names",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"input_geode_object": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"filename": {
10-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1115
}
1216
},
13-
"required": ["input_geode_object", "filename"],
17+
"required": [
18+
"input_geode_object",
19+
"filename"
20+
],
1421
"additionalProperties": false
15-
}
22+
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
22
"route": "/polyhedron_attribute_names",
3-
"methods": ["POST"],
3+
"methods": [
4+
"POST"
5+
],
46
"type": "object",
57
"properties": {
68
"input_geode_object": {
7-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
811
},
912
"filename": {
10-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1115
}
1216
},
13-
"required": ["input_geode_object", "filename"],
17+
"required": [
18+
"input_geode_object",
19+
"filename"
20+
],
1421
"additionalProperties": false
15-
}
22+
}

src/opengeodeweb_back/routes/schemas/save_viewable_file.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
"type": "object",
77
"properties": {
88
"input_geode_object": {
9-
"type": "string"
9+
"type": "string",
10+
"minLength": 1
1011
},
1112
"filename": {
12-
"type": "string"
13+
"type": "string",
14+
"minLength": 1
1315
}
1416
},
1517
"required": [

src/opengeodeweb_back/routes/schemas/texture_coordinates.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
"type": "object",
77
"properties": {
88
"input_geode_object": {
9-
"type": [
10-
"string"
11-
]
9+
"type": "string",
10+
"minLength": 1
1211
},
1312
"filename": {
14-
"type": [
15-
"string"
16-
]
13+
"type": "string",
14+
"minLength": 1
1715
}
1816
},
1917
"required": [

0 commit comments

Comments
 (0)