Skip to content

BirthdayMemoryDto

Endpoints · All schemas

FieldRequiredDescription
ageYesAge reached on this birthday
dateYesThe birthday this year, 'yyyy-MM-dd'
kindYesDiscriminator for a birthday
nameYesTheir name when the memory was made
subjectYesWhether the birthday is a person's or a pet's
subjectIdYesThe owner's person or pet whose birthday it is
yearYesYear of this birthday

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

{
  "properties": {
    "age": {
      "description": "Age reached on this birthday",
      "maximum": 9007199254740991,
      "minimum": 0,
      "nullable": true,
      "type": "integer"
    },
    "date": {
      "description": "The birthday this year, 'yyyy-MM-dd'",
      "type": "string"
    },
    "kind": {
      "description": "Discriminator for a birthday",
      "enum": [
        "birthday"
      ],
      "type": "string"
    },
    "name": {
      "description": "Their name when the memory was made",
      "type": "string"
    },
    "subject": {
      "description": "Whether the birthday is a person's or a pet's",
      "enum": [
        "person",
        "pet"
      ],
      "type": "string"
    },
    "subjectId": {
      "description": "The owner's person or pet whose birthday it is",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "year": {
      "description": "Year of this birthday",
      "maximum": 9999,
      "minimum": 1000,
      "type": "integer"
    }
  },
  "required": [
    "age",
    "date",
    "kind",
    "name",
    "subject",
    "subjectId",
    "year"
  ],
  "type": "object"
}