forked from jharmn/api-standards
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfile_reference.json
34 lines (33 loc) · 1.13 KB
/
file_reference.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"type": "object",
"title": "File Reference",
"description": "The file reference object for the uploaded file.",
"properties": {
"id": {
"type": "string",
"description": "The ID of the referenced file.",
"minLength": 1,
"maxLength": 255
},
"reference_url": {
"type": "string",
"description": "The reference URL for the file.",
"format": "uri",
"minLength": 1,
"maxLength": 2000
},
"content_type": {
"type": "string",
"description": "The [Internet Assigned Numbers Authority (IANA) media type of the file](https://www.iana.org/assignments/media-types/media-types.xhtml)."
},
"create_time": {
"description": "The date and time when the file was created, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).",
"$ref": "date_time.json"
},
"size": {
"type": "string",
"description": "The size of the file, in bytes.",
"pattern": "^[0-9]+$"
}
}
}