Add a way to create schemas
- 主要言語
- PHP
- スター
- 500
- フォーク
- 99
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
The library allows to create paths, but apparently doesn't provide any way to add schemas.
Doing something like:
`$objOpenapi->components->schemas['foo'] = new Schema([
'type' => Type::INTEGER,
]);`
gives a warning and the element is not created:
PHP Notice: Indirect modification of overloaded property cebe\openapi\spec\Components::$schemas has no effect in G:\test.php on line 119
Am I missing something ?
If not, it would be nice if we could create dynamically elements using this library.
Thank in advance
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず issue の例を再現し、cebe\openapi\spec\Components がオーバーロードされた schemas プロパティをどのように処理するかを確認します。スキーマを動的に追加するためにサポートされている方法を特定します。スキーマを作成して、報告された PHP notice なしで追加できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100