com.naturesfieldbook.temp.sighting

A biological record.

Details · record, key tid
Kindrecord
Record keytid
Authoritytemp.naturesfieldbook.com
Indexed
cid bafyreiedyfrwc3kdg5me55npbd72zmytd35v4gk6b5hmbcutuxr45wnoc4

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "location": {
      "nullable": [
        "gridReference"
      ],
      "properties": {
        "accuracyInMeters": {
          "type": "integer"
        },
        "gridReference": {
          "maxLength": 12,
          "type": "string"
        },
        "latitude": {
          "type": "integer"
        },
        "longitude": {
          "type": "integer"
        },
        "scaleFactor": {
          "type": "integer"
        }
      },
      "required": [
        "accuracyInMeters",
        "latitude",
        "longitude",
        "scaleFactor"
      ],
      "type": "object"
    },
    "main": {
      "description": "A biological record.",
      "key": "tid",
      "record": {
        "nullable": [
          "deletedAt",
          "note"
        ],
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "deletedAt": {
            "format": "datetime",
            "type": "string"
          },
          "location": {
            "ref": "#location",
            "type": "ref"
          },
          "moment": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "organismRecords": {
            "items": {
              "ref": "#organismRecord",
              "type": "ref"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "location",
          "moment",
          "organismRecords",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "organismRecord": {
      "properties": {
        "isSpecimen": {
          "default": false,
          "type": "boolean"
        },
        "sex": {
          "default": "not-recorded",
          "knownValues": [
            "both",
            "female",
            "male",
            "not-recorded"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "stage": {
          "default": "not-recorded",
          "knownValues": [
            "first-instar",
            "second-instar",
            "third-instar",
            "fourth-instar",
            "fith-instar",
            "adult",
            "gall",
            "larva",
            "nymph",
            "pupa",
            "not-recorded"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "suffix": {
          "default": "not-recorded",
          "knownValues": [
            "aggregate",
            "sensu-lato",
            "sensu-stricto",
            "not-recorded"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "taxon": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "taxon"
      ],
      "type": "object"
    }
  },
  "id": "com.naturesfieldbook.temp.sighting",
  "lexicon": 1
}