Support for Attributes?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- fsharp, python
- Ambito
- backend-api-design, compilers
Direzione di ricerca
L’issue cita Fable reflection, gli attributi e la deserializzazione JSON, ma non indica file o test. Inizia individuando i punti di ingresso per reflection e deserializzazione, quindi determina se gli attributi possono influire sull’albero sintattico generato e su entrambe le forme di input JSON. Il lavoro è completo quando il comportamento degli attributi supportato e la deserializzazione risultante sono specificati e coperti da test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- F#
- Stelle
- 144
- Fork
- 10
- Merge medio
- 1g 16h
- PR unite (30g)
- 23
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fable-compiler/Fable.Python
-
agentic-workflows automation repo-assist
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
fable-compiler/Fable.Python#259 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fable-compiler/Fable.Python#117 ·
-
Pandas binding Apertahelp wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fable-compiler/Fable.Python#65 · 5 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
fable-compiler/Fable.Python#5 · 7 commenti ·
Tutte le issue di fable-compiler/Fable.Python
Issue simili
-
[Bug]: Discord Activity titles with emoji are rejected as over 80 characters when they are not Apertaclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
growthbook/growthbook#7100 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
punkpeye/mcp-remote#369 ·
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Azure/azure-sdk-for-net#63292 · 3 commenti · 1 reazione ·
-
bug p:3-mid pydanty:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
pydantic/pydantic-ai#8643 · 1 commento ·