Skip to content

Calling vercel.deployments.getDeployments returns ... prev: 'string' when number is expected #30

@rbbydotdev

Description

@rbbydotdev
the response i get is `{ deployments: [], pagination: { count: 0, next: null, prev: '0' } }`

this is causing an error in the zod validation:

Cause: ZodError: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "string",
    "path": [
      "pagination",
      "prev"
    ],
    "message": "Expected number, received string"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions