-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
CSharp generator does not generate DateTime properties #1607
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Hey @jano-petras, thanks for the issue! Here is where the type is being determined for C#:
So we just have to do something similar as we do in Java:
Would be awesome if you would help contribute this ✌️ Make sure to base the changes on the |
/gfi typescript |
Sounds all right, will see what I can come up with |
🎉 This issue has been resolved in version 3.0.0-next.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 4.0.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
CSharp code generation is not respecting 'format' hints when generating C# code, specifically date-time format. On the other hand, java generation does.
How to Reproduce
npm install @asyncapi/modelina
npm install @asyncapi/cli
Versions installed were:
Yaml file with AsyncAPI:
Execute:
npx asyncapi generate models csharp ./sample1.yml --namespace=Test
Output:
Execute:
npx asyncapi generate models java ./sample1.yml --packageName=Test
Output:
Expected behavior
sentAt
should be rendered withDateTime
.net type, similar to how java rendersOffsetDateTime
The text was updated successfully, but these errors were encountered: