Support for Attributes?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- fsharp, python
調査の方向性
この issue では Fable reflection、属性、JSON のデシリアライゼーションが挙げられていますが、ファイルやテストは示されていません。まず reflection とデシリアライゼーションのエントリポイントを特定し、次に属性が生成された構文木と 2 つの JSON 入力形式の両方に影響を与えられるかどうかを確認してください。完了の条件は、サポートされる属性の動作と、それによって生じるデシリアライゼーションが仕様化され、テストでカバーされていることです。
索引モデルが issue の本文から書いたものです。
説明
I'm now happy with Fable's reflection, which allows me to do what pydantic does in the python world.
However I want to step further. I want to allow syntax sugars in the configuration, but get the same syntax tree.
type github_url= { url: string; [<Default("main")>] branch: string}
type myconfig =
{
[<AllowSingular>] author: string array
url : github_url
...
}
By using attributes, I want to control JSON deserialization, to parse into the same results for
{
"author" : ["fable"],
"url" : { "name": "xxx/xxx", "branch", "main" },
...
}
and
{
"author": "fable",
"url": "xxx/xxx"
}
Is the use of attributes possible in Fable?
- 主要言語
- F#
- スター
- 144
- フォーク
- 10
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 23
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fable-compiler/Fable.Python のほかの issue
-
agentic-workflows automation repo-assist
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
fable-compiler/Fable.Python#259 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fable-compiler/Fable.Python#117 ·
-
Pandas binding オープンhelp wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fable-compiler/Fable.Python#65 · コメント 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
fable-compiler/Fable.Python#5 · コメント 7 件 ·
fable-compiler/Fable.Python の issue をすべて見る
似ている issue
-
Area: Excel support
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
orbeon/orbeon-forms#7893 ·
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/python-sdk#3566 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
griptape-ai/griptape#2353 ·