Akryum / Akryum/moquerie

Generate expected format depending on custom scalars (Date)

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
211
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello! It seems the generated format for fields depending on custom scalars does not correspond. Not sure it's something we could add/fix? I know we could override it in the resolvers files, but is it possible to have the expected format directly in the generated json mock file?

Schema:
Screenshot 2024-12-10 at 15 43 20

Custom scalar (Date) defined in my code:
-> The returned value is an Integer
![Screenshot 2024-12-10 at 15 46 13](https://github.com/user-attachments/assets/734d22f0-565e-4f48-a781-0f5afb0c3e27)

Moquerie dashboard:
-> We set any custom value in timestamp format
Screenshot 2024-12-10 at 15 41 17

Generated mock file
-> Should be an Integer instead of String?
Screenshot 2024-12-10 at 15 44 02

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。