{
  "lexicon": 1,
  "id": "space.polymodel.library.part",
  "defs": {
    "main": {
      "type": "record",
      "key": "tid",
      "description": "A part: a single printable geometry file (STL/3MF/OBJ; multi-body discouraged).",
      "record": {
        "type": "object",
        "properties": {
          "name": { "type": "string", "maxGraphemes": 64, "maxLength": 256 },
          "file": { "type": "ref", "ref": "space.polymodel.library.defs#file" },
          "format": { "type": "string" },
          "dimensions": { "type": "ref", "ref": "space.polymodel.library.defs#bbox" },
          "units": { "type": "string", "default": "mm" },
          "notes": { "type": "string", "maxGraphemes": 300, "maxLength": 2000 },
          "printSettings": { "type": "array", "items": { "type": "string" }, "maxLength": 50 },
          "previews": { "type": "array", "items": { "type": "ref", "ref": "space.polymodel.library.defs#image" }, "maxLength": 12 },
          "derivedFrom": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
          "intendedToWorkWith": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "maxLength": 32 },
          "createdAt": { "type": "string", "format": "datetime" }
        },
        "required": ["name", "file", "createdAt"]
      }
    }
  }
}
