place.birds.sighting

birds.place

Schema Diff

+35 -8

From

CID
bafyreib4m3zlmev...
Indexed At
2026-07-27 17:07 UTC
View this version

To

CID
bafyreihwtl3wmzv...
Indexed At
2026-07-29 21:42 UTC
View this version

Compatibility Analysis

Breaking Changes Detected

3 breaking changes, 4 non-breaking changes.

Breaking Changes (3)
  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting#media.alt", sort: "maxGraphemes", value: "400" }
  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting:body.count", sort: "maximum", value: "100000" }
  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting#location.name", sort: "maxGraphemes", value: "160" }
Non-Breaking Changes (4)
  • AddedVertex AddedVertex { vertex_id: "place.birds.sighting#media.thumb" }
  • AddedVertex AddedVertex { vertex_id: "place.birds.sighting:body.thumb" }
  • AddedEdge AddedEdge { src: "place.birds.sighting#media", tgt: "place.birds.sighting#media.thumb", kind: "prop", name: Some("thumb") }
  • AddedEdge AddedEdge { src: "place.birds.sighting:body", tgt: "place.birds.sighting:body.thumb", kind: "prop", name: Some("thumb") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "place.birds.sighting#media.thumb" }
  • AddedVertex { vertex_id: "place.birds.sighting:body.thumb" }

Constraint Changes

  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting#location.name", sort: "maxGraphemes", value: "160" }
  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting#media.alt", sort: "maxGraphemes", value: "400" }
  • ConstraintAdded ConstraintAdded { vertex_id: "place.birds.sighting:body.count", sort: "maximum", value: "100000" }

Additional Notes

  • Non-breaking: AddedEdge { src: "place.birds.sighting#media", tgt: "place.birds.sighting#media.thumb", kind: "prop", name: Some("thumb") }
  • Non-breaking: AddedEdge { src: "place.birds.sighting:body", tgt: "place.birds.sighting:body.thumb", kind: "prop", name: Some("thumb") }
1 1
{
2 2
  "id": "place.birds.sighting",
3 3
  "defs": {
4 4
    "main": {
5 5
      "key": "tid",
6 6
      "type": "record",
7 7
      "record": {
8 8
        "type": "object",
9 9
        "required": [
10 10
          "species",
11 11
          "observedAt",
12 12
          "createdAt"
13 13
        ],
14 14
        "properties": {
15 15
          "count": {
16 16
            "type": "integer",
17 +
            "maximum": 100000,
17 18
            "minimum": 1,
18 -
            "description": "How many individuals."
19 +
            "description": "How many individuals the observer counted. Absent means one, or means they did not count."
19 20
          },
20 21
          "media": {
21 22
            "type": "array",
22 23
            "items": {
23 24
              "ref": "#media",
24 25
              "type": "ref"
25 26
            },
26 -
            "maxLength": 4
27 +
            "maxLength": 4,
28 +
            "description": "Evidence, in whatever form it was captured: a photo, a video, or a recording of the call. Ordered as the observer added it."
27 29
          },
28 30
          "notes": {
29 31
            "type": "string",
30 32
            "maxLength": 3000,
33 +
            "description": "Anything else the observer wants to say about the sighting: behaviour, plumage, who they were with.",
31 34
            "maxGraphemes": 600
32 35
          },
36 +
          "thumb": {
37 +
            "type": "blob",
38 +
            "accept": [
39 +
              "image/*"
40 +
            ],
41 +
            "maxSize": 100000000,
42 +
            "description": "The image the observer chose to represent this sighting in compact views. Must be either an image in `media` or a `thumb` belonging to an item in `media`; clients should ignore unrelated blobs."
43 +
          },
33 44
          "species": {
34 45
            "type": "string",
35 46
            "maxLength": 640,
36 47
            "description": "Common name as the observer said it. Free text on purpose — always present, even when no code was resolved.",
37 48
            "maxGraphemes": 160
38 49
          },
39 50
          "location": {
40 51
            "ref": "#location",
41 -
            "type": "ref"
52 +
            "type": "ref",
53 +
            "description": "Roughly where the bird was. Optional, and deliberately coarse — see #location."
42 54
          },
43 55
          "createdAt": {
44 56
            "type": "string",
45 -
            "format": "datetime"
57 +
            "format": "datetime",
58 +
            "description": "Client-declared timestamp for when this record was written."
46 59
          },
47 60
          "observedAt": {
48 61
            "type": "string",
49 62
            "format": "datetime",
50 -
            "description": "When the bird was seen. Distinct from createdAt so a sighting can be logged later."
63 +
            "description": "Client-declared timestamp for when the bird was seen. Distinct from createdAt so a sighting can be written up later. Not verified by anything."
51 64
          },
52 65
          "speciesCode": {
53 66
            "type": "string",
54 67
            "maxLength": 32,
55 68
            "description": "The observer's asserted identification as a stable eBird/Clements taxon code (e.g. `norcar`). Present when they picked from the list; absent when they just typed something. May be a `spuh` or `slash` code when the identification is honestly partial."
56 69
          }
57 70
        }
58 71
      },
59 72
      "description": "A bird sighting logged by the observer, stored in their own repository. Honor system: `species` is what the observer believes they saw, not a verified determination."
60 73
    },
61 74
    "media": {
62 75
      "type": "object",
63 76
      "required": [
64 77
        "blob"
65 78
      ],
66 79
      "properties": {
67 80
        "alt": {
68 81
          "type": "string",
69 -
          "maxLength": 2000
82 +
          "maxLength": 2000,
83 +
          "description": "Alt text describing the media for people who cannot see or hear it.",
84 +
          "maxGraphemes": 400
70 85
        },
71 86
        "blob": {
72 87
          "type": "blob",
73 88
          "accept": [
74 89
            "image/*",
75 90
            "audio/*",
76 91
            "video/*"
77 92
          ],
78 -
          "maxSize": 100000000
93 +
          "maxSize": 100000000,
94 +
          "description": "The captured file. Audio is first-class here: a bird's call is often better evidence than a photograph of a silhouette."
95 +
        },
96 +
        "thumb": {
97 +
          "type": "blob",
98 +
          "accept": [
99 +
            "image/jpeg",
100 +
            "image/png",
101 +
            "image/webp"
102 +
          ],
103 +
          "maxSize": 2000000,
104 +
          "description": "A still representing this media — for a video, a frame the observer chose. Derived from `blob`, never captured separately, so a client may regenerate it. Absent for media that is already an image."
79 105
        }
80 106
      }
81 107
    },
82 108
    "location": {
83 109
      "type": "object",
84 110
      "required": [
85 111
        "latitude",
86 112
        "longitude"
87 113
      ],
88 114
      "properties": {
89 115
        "name": {
90 116
          "type": "string",
91 117
          "maxLength": 640,
92 -
          "description": "Free-text place name."
118 +
          "description": "Free-text place name, as the observer chose it (e.g. \"Montrose Point Bird Sanctuary, Chicago\"). Independent of the coordinates and not verified against them.",
119 +
          "maxGraphemes": 160
93 120
        },
94 121
        "latitude": {
95 122
          "type": "string",
96 123
          "maxLength": 32,
97 124
          "description": "Decimal degrees, as a string to avoid float drift. Deliberately coarse: clients should write no more than 3 decimal places (~110m). These records are public and permanent, and a bird sighting does not need a precise fix."
98 125
        },
99 126
        "longitude": {
100 127
          "type": "string",
101 128
          "maxLength": 32,
102 129
          "description": "Decimal degrees, as a string. Same precision limit as latitude."
103 130
        }
104 131
      }
105 132
    }
106 133
  },
107 134
  "$type": "com.atproto.lexicon.schema",
108 135
  "lexicon": 1
109 136
}

Compare Other Versions

Lexicon Garden

@