Skip to content

Commit

Permalink
Disallow folders #106
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 17, 2019
1 parent 3e3fab9 commit b243591
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
20 changes: 6 additions & 14 deletions load_uploaded_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,14 @@
],
"parameters": {
"paths": {
"description": "The files and/or folders to read.\n\nAll files in the specified folders will be read, which includes recursively reading all sub-folders. Implementations may skip files in folders that clearly can't be read using the specified format, but there's no guarantee for it.\n\nAn error is thrown if a file can't be read.",
"description": "The files to read. Folders can't be specified, instead specify all files. An error is thrown if a file can't be read.",
"schema": {
"type": "array",
"subtype": "file-folder-paths",
"subtype": "file-paths",
"items": {
"anyOf": [
{
"type": "string",
"subtype": "file-path"
},
{
"type": "string",
"subtype": "folder-path"
}
]
}
"type": "string",
"subtype": "file-path"
}
},
"required": true
},
Expand All @@ -41,7 +33,7 @@
"required": true
},
"options": {
"description": "The file format options to be used to read the file(s). Must correspond to the options that the server reports as supported options for the chosen `format`. The option names and valid values usually correspond to the GDAL/OGR format options.",
"description": "The file format options to be used to read the files. Must correspond to the options that the server reports as supported options for the chosen `format`. The option names and valid values usually correspond to the GDAL/OGR format options.",
"schema": {
"type": "object",
"subtype": "input-format-options"
Expand Down
3 changes: 1 addition & 2 deletions tests/openapi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ var subtypes = {
'bounding-box': {type: 'object'},
'collection-id': {type: 'string'},
'epsg-code': {type: 'integer'},
'file-folder-paths': {type: 'array'},
'file-paths': {type: 'array'},
'file-path': {type: 'string'},
'folder-path': {type: 'string'},
'geojson': {type: 'object'},
'input-format': {type: 'string'},
'input-format-options': {type: 'object'},
Expand Down

0 comments on commit b243591

Please sign in to comment.