Skip to content
OATSCHEMA

Docs / Schemas / generic

Generic 0.8.0

A flexible schema for storing arbitrary key-value data.

$id
https://oatschema.org/0.8.0/generic
Latest
https://oatschema.org/generic
Versions
Source
v0.8.0 on GitHub

Schema

generic.json Raw
{    "x-license": {        "id": "Apache-2.0",        "notice": "Copyright 2025-2026 The OATS Authors",        "url": "https://github.com/oatschema/oats/blob/main/LICENSE"    },    "$schema": "https://json-schema.org/draft/2020-12/schema",    "$id": "https://oatschema.org/0.8.0/generic",    "title": "Generic",    "x-version": "0.8.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
generic-1.json
{    "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

  • description string

    Describe the data.

    • at most 1024 characters
  • producer string

    The creator (model, tool or author) of this record.

    • at most 1024 characters
  • data object required

    An object containing custom key-value data. Nesting is disallowed.

    • at most 128 properties
    • keys at most 128 characters
    • * string | number | boolean | null

      Any other key.

      • string: at most 1024 characters

Copyright 2025-2026 The OATS Authors. Licensed under Apache-2.0.