Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Aug 23, 2024
2 parents 5f82bf4 + 69c9c20 commit ef168f2
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
36 changes: 36 additions & 0 deletions data/base64/v0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://common.schemas.verida.io/data/base64/v0.1.0/schema.json",
"title": "Data",
"titlePlural": "Data",
"description": "Base64 encoded data",
"type": "object",
"appearance": {
"style": {
"color": "#FD4F64",
"icon": "./icon.svg"
}
},
"database": {
"name": "data_base64",
"indexes": {}
},
"layouts": {
"create": [
"_id",
"data"
],
"view": [
"_id",
"data"
]
},
"properties": {
"data": {
"title": "Data",
"type": "string",
"description": "Base64 encoded data"
}
},
"required": ["data"]
}
79 changes: 79 additions & 0 deletions file/v0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://common.schemas.verida.io/file/v0.1.0/schema.json",
"title": "File",
"titlePlural": "Files",
"description": "A file",
"type": "object",
"appearance": {
"style": {
"color": "#FD4F64",
"icon": "./icon.svg"
}
},
"database": {
"name": "file",
"indexes": {
"name": ["name", "type", "insertedAt"],
"insertedAt": ["insertedAt"],
"source": ["sourceApplication", "sourceId"]
}
},
"layouts": {
"create": [
"name",
"extension",
"mimeType",
"size",
"summary",
"uri"
],
"view": [
"name",
"extension",
"mimeType",
"size",
"fileDataId",
"uri",
"insertedAt"
]
},
"allOf": [
{"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json"},
{
"properties": {
"extension": {
"title": "Extension",
"type": "string",
"description": "File extension of the document (ie: png)"
},
"mimeType": {
"title": "MIME Type",
"type": "string",
"description": "MIME type of the file"
},
"size": {
"title": "Size",
"type": "integer",
"description": "Size of the document in bytes"
},
"contentText": {
"title": "Content (Text)",
"type": "string",
"description": "Text content of the file (if relevant)"
},
"fileDataId": {
"title": "File Data ID",
"type": "string",
"description": "Reference to the base64 encoded content of the file (optional)"
},
"uri": {
"title": "URI",
"type": "string",
"description": "External link to the document (optional)"
}
},
"required": ["name", "extension", "mimeType", "size"]
}
]
}

0 comments on commit ef168f2

Please sign in to comment.