meower-media/uploads

Upload endpoint is missing keys

Closed this issue · 2 comments

Missing keys are:

[
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": ["bucket"],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "boolean",
    "received": "undefined",
    "path": ["claimed"],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": ["hash"],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "undefined",
    "path": ["uploaded_at"],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": ["uploaded_by"],
    "message": "Required"
  }
]

(this broke uploading on roarer and roarbot)

I should’ve made sure those fields weren’t required by anything, sorry. Going forward, the fields Meower Uploads returns will be the same fields post attachments have, that means all of those keys will no longer be returned.