The types for `Permission` are not as in the API.
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- api
調査の方向性
Start by locating the beta Permission and SharePointIdentitySet type definitions, then compare grantedToV2 with the documented response and the reported Graph API response. Update the type to match the evidence and check the relevant generated or type validation tests; done means the definition accepts the reported grantedToV2 shape and remains consistent with the API documentation.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The response for https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-list-permissions?view=graph-rest-beta&tabs=http#response should be of type permission.
The type permission is described in the BETA package as:
export interface Permission extends Entity {
/**
* A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue
* indicates there's no expiration set for this permission. Optional.
*/
expirationDateTime?: NullableOption<string>;
// For user type permissions, the details of the users and applications for this permission. Read-only.
grantedTo?: NullableOption<IdentitySet>;
// For type permissions, the details of the users to whom permission was granted. Read-only.
grantedToIdentities?: NullableOption<IdentitySet[]>;
// For link type permissions, the details of the users to whom permission was granted. Read-only.
grantedToIdentitiesV2?: NullableOption<SharePointIdentitySet[]>;
// For user type permissions, the details of the users and applications for this permission. Read-only.
grantedToV2?: NullableOption<SharePointIdentitySet>;
/**
* Indicates whether the password is set for this permission. This property only appears in the response. Optional.
* Read-only. For OneDrive Personal only.
*/
hasPassword?: NullableOption<boolean>;
// Provides a reference to the ancestor of the current permission, if it's inherited from an ancestor. Read-only.
inheritedFrom?: NullableOption<ItemReference>;
// Details of any associated sharing invitation for this permission. Read-only.
invitation?: NullableOption<SharingInvitation>;
// Provides the link details of the current permission, if it's a link type permission. Read-only.
link?: NullableOption<SharingLink>;
// The type of permission, for example, read. See the Roles property values section for the full list of roles. Read-only.
roles?: NullableOption<string[]>;
// A unique token that can be used to access this shared item via the shares API. Read-only.
shareId?: NullableOption<string>;
}
As you can see, the value for grantedToV2 is an optional SharePointIdentitySet. That does neither match the response in the documentation (https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-list-permissions?view=graph-rest-beta&tabs=http#response-1) nor the response I receive.
The response I receive is of the same structure as in the documentation. What I get as value on grantedToV2 rather reminds me of Person or User - it at least does have the property userPrincipalName.
Expected behavior
The types should match both the documentation and what I receive from the GraphAPI server.
How to reproduce
Download the types and try to match the response of the API request to the defined types.
SDK Version
0.43.0-preview
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- 主要言語
- PowerShell
- スター
- 129
- フォーク
- 35
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-typescript-typings のほかの issue
-
status:waiting-for-triage type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoftgraph/msgraph-typescript-typings#748 · リアクション 2 件 ·
-
status:waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
status:waiting-for-triage type:feature
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoftgraph/msgraph-typescript-typings#530 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 32/100
microsoftgraph/msgraph-typescript-typings の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fb55/htmlparser2#2579 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
trycua/hermes-cua-spaces#17 ·
-
area/channels kind/bug priority/medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nanocoai/nanoclaw#4501 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
AndyHazz/bookends.koplugin#134 ·