{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trydatabook-com/main/json-schema/trydatabook-com-library-list-item-schema.json",
  "title": "LibraryListItem",
  "x-generated": "2026-10-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trydatabook-com-openapi.json#/components/schemas/LibraryListItem",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "cta": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cta"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "level": {
      "$ref": "#/$defs/LibraryLevel"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "level"
  ],
  "$defs": {
    "LibraryLevel": {
      "type": "string",
      "enum": [
        "company",
        "professionals"
      ],
      "title": "LibraryLevel"
    }
  }
}