-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unable to run generated code #60
Comments
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@damaru-inc any chance you could have a look? |
I'll check the following days again .. |
VERSION=0.2.10 still creates invalid python class code! This happens for all schema objects that do not define any properties, or am I doing something wrong?
init method does not do anything, no code after : is still bad/invalid python code which is not exectuable. Furthermore no main.py is generated (as it was in former version 0. 2.8) - but maybe this has changed .. tbd |
I'll be able to fix this this week. |
🎉 This issue has been resolved in version 0.2.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Looks like a bug in 0.2.8 code generation.
When generating code by something like this:
This produces a timestamp.py class which is invalid:
This happens for all schema objects that do not define any properties = all classes without
__init__
arguments.Expected behavior
Generated classes with no properties defined shall be valid python code.
How to fix it
All these bad
__init__
methods shall simple add apass
.After manually adding
pass
to all these wrongly syntaxed__init__
methods the generated code works!The text was updated successfully, but these errors were encountered: