Skip to content

Commit

Permalink
[RUM][REPLAY] Add resource schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautGeriz committed Nov 8, 2023
1 parent 36e94a0 commit 0e7be3e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions schemas/resource-metadata-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "asset-metadata.json",
"title": "ResourceMetadata",
"type": "object",
"description": "Schema of the resource metadata. The metadata to idenfify the asset's content uploaded to th backend",
"required": ["type", "application"],
"properties": {
"type": {
"const": "resource"
},
"application": {
"type": "object",
"description": "Application properties",
"required": ["id"],
"properties": {
"id": {
"type": "string",
"description": "UUID of the application",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
"readOnly": true
}
},
"readOnly": true
}
}
}

0 comments on commit 0e7be3e

Please sign in to comment.