# de.libranoir.schrankNotiz

> One note per person and bookcase, updated in place. Record key as in de.libranoir.schrank: first letter of the OSM element type plus the OSM id, e.g. n123456. At least text or image should be present.

- Kind: record
- Record key: any
- Authority: libranoir.de
- Lexicon: 1
- Published by [libranoir.de](https://lexicon.garden/identity/did:plc:ynof7d6bm7yhdw5nudasfdop), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrankNotiz)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrankNotiz/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrankNotiz/analytics)

## Record (`de.libranoir.schrankNotiz`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `image` (ref)
  - Reference: `#image`
- `osm` (string, required): OpenStreetMap element, e.g. node/123456 (type/id).
  - Constraints: maxLength: 40
- `text` (string): The note, e.g. how well stocked or kept the bookcase is.
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `updatedAt` (string · datetime)

## #aspectRatio (`de.libranoir.schrankNotiz#aspectRatio`)

Type: object

### Properties

- `height` (integer, required)
  - Constraints: minimum: 1
- `width` (integer, required)
  - Constraints: minimum: 1

## #image (`de.libranoir.schrankNotiz#image`)

Type: object

### Properties

- `alt` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `aspectRatio` (ref)
  - Reference: `#aspectRatio`
- `image` (blob, required)
  - Constraints: maxSize: 1000000, accept: image/jpeg

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "image": {
      "properties": {
        "alt": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "image": {
          "accept": [
            "image/jpeg"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "image"
      ],
      "type": "object"
    },
    "main": {
      "description": "One note per person and bookcase, updated in place. Record key as in de.libranoir.schrank: first letter of the OSM element type plus the OSM id, e.g. n123456. At least text or image should be present.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "image": {
            "ref": "#image",
            "type": "ref"
          },
          "osm": {
            "description": "OpenStreetMap element, e.g. node/123456 (type/id).",
            "maxLength": 40,
            "type": "string"
          },
          "text": {
            "description": "The note, e.g. how well stocked or kept the bookcase is.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "osm",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A note and/or photo about a public bookcase (OpenStreetMap amenity=public_bookcase), written on LibraNoir.",
  "id": "de.libranoir.schrankNotiz",
  "lexicon": 1
}
```
