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

Fixed Some Runtime Issues #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dasanibroto
Copy link

When running the tool with no config specified, the std default derive would not use serde deserialisation defaults. This has been alleviated by implementing Default manually.

In Schema mode, when files are not produced, like input_objects.rs, the mod.rs still included them in the imports. As far as I can tell, the code is already prepared to return false when this happens, so I just removed the hardcoded true that was there, as that would override the file creation bool as true regardless of what the function reported.

Finally, I updated all the dependencies in the main project. I didn't get around to updating the dependencies in the examples however.

I don't believe I've broken any functionality with these changes, it seems to generate correct code for my schema. I was always trying to use the tool without a config file, as it was declared as optional, which is why I came across these problems.

When running the tool with no config specified, the std default derive would not use serde defaults.
This has been alleviated by implementing Default manually.

In Schema mode, when files are not produced, like input_objects.rs, the mod.rs still included them in the imports.
As far as I can tell, the code is already prepared to return false when this happens, so I just removed the hardcoded true that was there, as that would override the file creation bool as true regardless of what the function reported.

Finally, I updated all the dependencies in the main project. I didn't get around to updating the dependencies in the examples however.
@dasanibroto dasanibroto force-pushed the fix_no_config_and_dependencies branch from 9a90c48 to 8542847 Compare July 30, 2024 02:30
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

Successfully merging this pull request may close these issues.

1 participant