Skip to content

Commit e43b92d

Browse files
remode $id from schemas
1 parent e9a999c commit e43b92d

File tree

6 files changed

+20
-45
lines changed

6 files changed

+20
-45
lines changed
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
{
2-
"$id": "/allowed_files",
32
"route": "/allowed_files",
4-
"methods": [
5-
"POST"
6-
],
3+
"methods": ["POST"],
74
"type": "object",
85
"properties": {
96
"key": {
10-
"type": [
11-
"string",
12-
"null"
13-
]
7+
"type": ["string", "null"]
148
}
159
},
16-
"required": [
17-
"key"
18-
],
10+
"required": ["key"],
1911
"additionalProperties": false
20-
}
12+
}

src/opengeodeweb_back/routes/schemas/allowed_objects.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$id": "/tools/allowed_objects",
32
"route": "/allowed_objects",
43
"methods": ["POST"],
54
"type": "object",
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"$id": "/tools/geode_objects_and_output_extensions",
32
"route": "/geode_objects_and_output_extensions",
4-
"methods": [
5-
"POST"
6-
],
3+
"methods": ["POST"],
74
"type": "object",
85
"properties": {
96
"input_geode_object": {
@@ -13,9 +10,6 @@
1310
"type": "string"
1411
}
1512
},
16-
"required": [
17-
"input_geode_object",
18-
"filename"
19-
],
13+
"required": ["input_geode_object", "filename"],
2014
"additionalProperties": false
21-
}
15+
}
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
2-
"$id": "/tools/geographic_coordinate_systems",
32
"route": "/geographic_coordinate_systems",
4-
"methods": [
5-
"POST"
6-
],
3+
"methods": ["POST"],
74
"type": "object",
85
"properties": {
96
"input_geode_object": {
107
"type": "string"
118
}
129
},
13-
"required": [
14-
"input_geode_object"
15-
],
10+
"required": ["input_geode_object"],
1611
"additionalProperties": false
17-
}
12+
}

src/opengeodeweb_back/routes/schemas/missing_files.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$id": "/tools/missing_files",
32
"route": "/missing_files",
43
"methods": ["POST"],
54
"type": "object",
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
2-
"$id": "/tools/upload_file",
3-
"route": "/upload_file",
4-
"methods": [
5-
"OPTIONS",
6-
"PUT"
7-
],
8-
"type": "object",
9-
"properties": {
10-
"filename": {
11-
"type": "string"
12-
}
13-
},
14-
"additionalProperties": false
15-
}
2+
"route": "/upload_file",
3+
"methods": ["OPTIONS", "PUT"],
4+
"type": "object",
5+
"properties": {
6+
"filename": {
7+
"type": "string"
8+
}
9+
},
10+
"additionalProperties": false
11+
}

0 commit comments

Comments
 (0)