From 885b76021ea3dbc4ebcf5089a883b7ebe5aaf543 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Fri, 17 Nov 2023 16:55:48 +0100 Subject: [PATCH] fileformats.schema - add file classes allowed properties Can now define an action based on a general file class as fallback. Classes come from Pronom. --- fileformats.schema.json | 78 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/fileformats.schema.json b/fileformats.schema.json index 51f5902..0771be1 100644 --- a/fileformats.schema.json +++ b/fileformats.schema.json @@ -3,6 +3,84 @@ "$id": "actions", "type": "object", "additionalProperties": false, + "properties": { + "!binary": { + "description": "An Action object for the file class 'binary'.", + "$ref": "#/definitions/action" + }, + "!aggregate": { + "description": "An Action object for the file class 'aggregate'.", + "$ref": "#/definitions/action" + }, + "!audio": { + "description": "An Action object for the file class 'audio'.", + "$ref": "#/definitions/action" + }, + "!database": { + "description": "An Action object for the file class 'database'.", + "$ref": "#/definitions/action" + }, + "!dataset": { + "description": "An Action object for the file class 'dataset'.", + "$ref": "#/definitions/action" + }, + "!email": { + "description": "An Action object for the file class 'email'.", + "$ref": "#/definitions/action" + }, + "!font": { + "description": "An Action object for the file class 'font'.", + "$ref": "#/definitions/action" + }, + "!gis": { + "description": "An Action object for the file class 'gis'.", + "$ref": "#/definitions/action" + }, + "!image (raster)": { + "description": "An Action object for the file class 'image (raster)'.", + "$ref": "#/definitions/action" + }, + "!image (vector)": { + "description": "An Action object for the file class 'image (vector)'.", + "$ref": "#/definitions/action" + }, + "!model": { + "description": "An Action object for the file class 'model'.", + "$ref": "#/definitions/action" + }, + "!page description": { + "description": "An Action object for the file class 'page description'.", + "$ref": "#/definitions/action" + }, + "!presentation": { + "description": "An Action object for the file class 'presentation'.", + "$ref": "#/definitions/action" + }, + "!spreadsheet": { + "description": "An Action object for the file class 'spreadsheet'.", + "$ref": "#/definitions/action" + }, + "!text (mark-up)": { + "description": "An Action object for the file class 'text (mark-up)'.", + "$ref": "#/definitions/action" + }, + "!text (structured)": { + "description": "An Action object for the file class 'text (structured)'.", + "$ref": "#/definitions/action" + }, + "!text (unstructured)": { + "description": "An Action object for the file class 'text (unstructured)'.", + "$ref": "#/definitions/action" + }, + "!video": { + "description": "An Action object for the file class 'video'.", + "$ref": "#/definitions/action" + }, + "!word processor": { + "description": "An Action object for the file class 'word processor'.", + "$ref": "#/definitions/action" + } + }, "patternProperties": { "^[a-zA-Z0-9_/-]+$": { "$ref": "#/definitions/action"