-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Add support for records with the C# generator through an option #1153
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. |
After discussing this in slack, we think the best approach is to do a similar thing we did for TypeScript and interface/class, where we conditionally render one or the other. So to achieve this in the C# generator we need to do the following changes:
so it should look like this:
How does that sound to you @henrikjon? |
Sounds really good i think, and your description on what to do is clear so it should be pretty straight forward to implement. Ill be happy to have a go at it later this week @jonaslagoni. |
Awesome, looking forward to it @henrikjon! Let me know if I can help with anything 🙂 |
@jonaslagoni thanks! Thats very generous, I have working code with a snapshot test but might still have a couple of things to iron out that i have not discovered yet. Trying to get a bit more familiar with the codebase before i submit the pull request. I did however create a local draft in my fork: henrikjon#1 . All feedback is very welcome :) |
🎉 This issue has been resolved in version 1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 2.0.0-next.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
Please try answering few of those questions
public record Car(int Doors, string Manufacturer);
Description
Please try answering few of those questions
The text was updated successfully, but these errors were encountered: