From 0e7be3e09743c96b72f059dd6a7f90761a7674d4 Mon Sep 17 00:00:00 2001 From: Thibaut Gery Date: Fri, 3 Nov 2023 17:05:36 +0100 Subject: [PATCH] [RUM][REPLAY] Add resource schema --- schemas/resource-metadata-schema.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 schemas/resource-metadata-schema.json diff --git a/schemas/resource-metadata-schema.json b/schemas/resource-metadata-schema.json new file mode 100644 index 00000000..8f1b260e --- /dev/null +++ b/schemas/resource-metadata-schema.json @@ -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 + } + } +}