jdalrymple / gitbeaker

🦊🧪 A comprehensive and typed Gitlab SDK for Node.js, Browsers, Deno and CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Project TS error preventing both path and name from being specified

kingmesal opened this issue · comments

Description

  • Gitbeaker version: 39.34.0
  • Gitbeaker release (rest, core):
Projects.create({
      path,
      name,
      namespaceId: parentGroupId,
      defaultBranch: "main",
      initializeWithReadme: true,
    }

Whichever comes second (path or name) gets linted as an error because the type def says:

 OneOf<{
        name: string;
        path: string;
    }>

The API Docs show that both are allowed to be specified, but ATLEAST one of the two is required.

Checklist

  • I have checked that this is not a duplicate issue.
  • I have read the documentation.

Waiting for deployment - An unrelated job is failing -_-

🚀 Issue was released in 39.34.1 🚀