{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genialis/main/json-schema/genialis-storage-schema.json",
  "title": "Storage",
  "description": "Serializer for Storage objects.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genialis-storage-api-openapi.yml#/components/schemas/Storage",
  "type": "object",
  "properties": {
    "created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "contributor": {
      "$ref": "#/$defs/Contributor"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "json": {},
    "name": {
      "type": "string"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "contributor",
    "created",
    "data",
    "id",
    "json",
    "modified"
  ],
  "$defs": {
    "Contributor": {
      "type": "object",
      "description": "Serializer for contributor User objects.",
      "properties": {
        "first_name": {
          "type": "string",
          "maxLength": 150
        },
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "last_name": {
          "type": "string",
          "maxLength": 150
        },
        "username": {
          "type": "string",
          "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
          "pattern": "^[\\w.@+-]+$",
          "maxLength": 150
        }
      },
      "required": [
        "id",
        "username"
      ]
    }
  }
}