Akryum / Akryum/moquerie

Generate expected format depending on custom scalars (Date)

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
211
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.