Skip to content

Commit

Permalink
[RUM][REPLAY] Add resource schema (#167)
Browse files Browse the repository at this point in the history
* [RUM][REPLAY] Add resource schema

* Fix typo

Co-authored-by: Bastien Caudan <[email protected]>

---------

Co-authored-by: Bastien Caudan <[email protected]>
  • Loading branch information
ThibautGeriz and bcaudan authored Nov 9, 2023
1 parent 36e94a0 commit e77ba0f
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": "resource-metadata-schema.json",
"title": "ResourceMetadata",
"type": "object",
"description": "Schema of the resource metadata. The metadata to idenfify the asset's content uploaded to the 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 e77ba0f

Please sign in to comment.