andreypopp / andreypopp/ppx_deriving_router
Make ppx inline `Ppx_deriving_router_runtime`
- Lingua principale
- OCaml
- Stelle
- 27
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The ppx could generate the full module binding on each case (even when json decoding is used) and avoid users to open the runtime, which is expected to be there in the first place.
```diff
module Api = struct
- open Ppx_deriving_router_runtime.Primitives
- open Ppx_deriving_json_runtime.Primitives
type user = { id : int } [@@deriving json]
type _ t =
| List_users : user list t [@GET "/"]
| Create_user : user t [@POST "/"]
| Get_user : { id : int } -> user t [@GET "/:id"]
| Raw : Ppx_deriving_router_runtime.response t [@GET "/raw"]
[@@deriving router]
end
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.