JSON Encode models
まだ誰も着手していません。
評価
調査の方向性
この issue では PHP SDK のモデルとその BackingStore が挙げられていますが、ソースファイル、エントリポイント、テストは示されていません。まずモデルのシリアライズと JSON の処理箇所を特定し、次に完全なオブジェクトの期待される出力を確認して、カバレッジを追加または更新してください。この issue では受け入れ基準が定義されていません。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I've been implementing the v2.2 version of the msgraph-sdk this week; however I'm facing an issue.
How can I encode the models returned from the client to JSON so it contains all values? It seems the actual values are in the BackingStore, but how can I make sure I get the actual data to be passed in a response?
For e.g. this works; but doesn't feel as the right solution:
json_encode($event->getBackingStore()->enumerate());
For reference, this is my code example below;
$requestConfig = new CalendarViewRequestBuilderGetRequestConfiguration(
headers: [
'Prefer' => 'outlook.timezone="W. Europe Standard Time"',
],
queryParameters: CalendarViewRequestBuilderGetRequestConfiguration::createQueryParameters(
endDateTime: $endDate,
startDateTime: $startDate,
top: 500
)
);
$events = $this->graphClient
->users()
->byUserId($userId)
->calendar()
->calendarView()
->get($requestConfig)
->wait()
;
foreach ($events->getValue() as $event) {
// I want to get the complete object as JSON values to be passed in a response
json_encode($event->getBackingStore()->enumerate());
}
Thank you in advance
- 主要言語
- PHP
- スター
- 669
- フォーク
- 150
- 平均マージ
- 15時間 21分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-sdk-php のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-php#1794 · コメント 2 件 ·
-
bug: metadata type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
microsoftgraph/msgraph-sdk-php#1739 · コメント 6 件 ·
-
status:waiting-for-triage type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-php#1643 · コメント 8 件 · リアクション 4 件 ·
-
status:waiting-for-triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
microsoftgraph/msgraph-sdk-php#1800 · リアクション 1 件 ·
-
Now オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
microsoftgraph/msgraph-sdk-php#1799 ·
microsoftgraph/msgraph-sdk-php の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getgrav/grav-plugin-api#45 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RSS-Bridge/rss-bridge#5098 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
phingofficial/phing#2025 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
silverstripe/developer-docs#911 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100