Allow a more convenient method of working with "x-" specifications
まだ誰も着手していません。
評価
調査の方向性
まず、issue にリンクされている OpenAPI 拡張仕様と、ライブラリに既存の getSerializableData() の動作を読みます。キーワード属性がどのように公開され、どのように isset() がそれらに対して使われているかを追跡します。呼び出し側が、報告された PHP エラーなしにハイフンを含む拡張名へ簡単にアクセスでき、既存のシリアライズの workaround も引き続き理解されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
First Point: Excellent project. I've written an OpenApi loader myself. Yours is much better.
Second Point: The openapi specification of keywords allows for the possibility of extending them with the "x-" syntax: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specification-extensions
In a project I am working on we have made use of this feature. When using cebe/php-openapi I've run into a problem.
- openapi requires the use of the "x-" syntax
- php interprets "x-" not as a variable (or something similar) but sees the "-" as an operation. Particularly with the function isset()
- cebe/php-openapi relies on the native php convention variable/(class attribute names)
- When using isset() to determine if a keyword has been specified PHP reports an error. I have been able to work around this problem by using getSerializableData(). However it would be nice and more convenient if one could access openapi variables (keywords) which use a "-" as part of their name.
- 主要言語
- PHP
- スター
- 500
- フォーク
- 99
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cebe/php-openapi のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
cebe/php-openapi#250 ·
-
BC break in 1.8オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cebe/php-openapi#247 · コメント 1 件 · リアクション 1 件 ·
-
php 8.4 deprecationsオープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
cebe/php-openapi#245 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
cebe/php-openapi#242 · コメント 6 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
cebe/php-openapi#238 ·
cebe/php-openapi の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
a2aproject/A2A#2262 ·
メンテナーはふだん 2 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 84/100
fossology/fossology#3871 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Slide deck generation fails with TypeError when the model omits "content"; slides always in Englishオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
nextcloud/richdocuments#6120 ·
メンテナーはふだん 3 日以内に返信
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信