Docs / Schemas / generic / 0.6.0
Generic 0.6.0
A flexible schema for storing arbitrary key-value data.
This is an older version of generic.
The latest version is 0.8.0. Releases before 0.7.0 use the $id https:/ and are served by DorsalHub.
$idhttps:// dorsalhub.com/ schemas/ open/ generic - Latest
https:// oatschema.org/ generic - Versions
- Source
- v0.6.0 on GitHub
Schema
{ "x-license": { "id": "Apache-2.0", "notice": "Copyright 2025-2026 Dorsal Hub LTD", "url": "https://github.com/dorsalhub/open-validation-schemas/blob/main/LICENSE" }, "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://dorsalhub.com/schemas/open/generic", "title": "Generic", "version": "0.6.0", "description": "A flexible schema for storing arbitrary key-value data.", "type": "object", "properties": { "description": { "type": "string", "description": "Describe the data.", "maxLength": 1024 }, "producer": { "type": "string", "description": "The creator (model, tool or author) of this record.", "maxLength": 1024 }, "data": { "type": "object", "description": "An object containing custom key-value data. Nesting is disallowed.", "maxProperties": 128, "propertyNames": { "maxLength": 128 }, "additionalProperties": { "anyOf": [ { "type": "string", "maxLength": 1024 }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ] } } }, "required": [ "data" ], "additionalProperties": false}
Examples
Records that pass validation against this schema.
generic-1
{ "description": "Output from image quality analysis script v1.2", "data": { "is_blurry": false, "contrast_score": 0.87, "dominant_color_hex": "#1a4e8a", "resolution_width": 1920, "primary_subject": null }}
Fields
-
descriptionstringDescribe the data.
- at most 1024 characters
-
producerstringThe creator (model, tool or author) of this record.
- at most 1024 characters
-
dataobject requiredAn object containing custom key-value data. Nesting is disallowed.
- at most 128 properties
- keys at most 128 characters
-
*string | number | boolean | nullAny other key.
- string: at most 1024 characters
Copyright 2025-2026 Dorsal Hub LTD. Licensed under Apache-2.0.