Verified Commit aba2ba74 authored by deniss.marinuks's avatar deniss.marinuks
Browse files

added regex to metadata file names

parent 7a42c6ee
......@@ -127,7 +127,7 @@ This is required if you have subdevices attached to your sensor. Then your devic
<br />
### File naming
File names MUST be unique.
File names MUST be unique and MUST comply with the following regex: "^[a-zA-Z0-9][a-zA-Z0-9._-]+$".
We suggest using deviceID, serialNumber and timestamp in your file name. The only thing that would need to be changed in this case, is the extension of the file.
For example:
```
......
......@@ -71,6 +71,10 @@
},
"sourceFiles": {
"type": "array",
"items": {
"type":"string",
"pattern" :"^[a-zA-Z0-9][a-zA-Z0-9._-]+$"
},
"uniqueItems": true
},
"files": {
......@@ -82,7 +86,8 @@
"additionalProperties": false,
"properties": {
"fileName": {
"type": "string"
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]+$"
},
"fileSize": {
"type": "number"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment