Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omitemptyがセットされていてもmockのdefault.jsonにデフォルト値を設定する #80

Open
tsuzu opened this issue Oct 22, 2020 · 0 comments

Comments

@tsuzu
Copy link
Collaborator

tsuzu commented Oct 22, 2020

mockで生成されているdefault.jsonではomitemptyの際にnullが代入されているが、テストの際にこれでは不便なため型に合わせてデフォルト値を代入する。

omitemptyに関するmockも必要であればomitemptyを除いているものと除いていないもの両方があると良さそう(?)

@tsuzu tsuzu changed the title mockのdefault.jsonの mockのdefault.jsonのomitemptyがセットされていてもデフォルト値を設定する Oct 22, 2020
@tsuzu tsuzu changed the title mockのdefault.jsonのomitemptyがセットされていてもデフォルト値を設定する omitemptyがセットされていてもmockのdefault.jsonにデフォルト値を設定する Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant