Replies: 1 comment 3 replies
-
@fmg-kapil have a look at Presets ✌️ You can use CSHARP_JSON_SERIALIZER_PRESET that also adds annotation to the class as reference |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a method to generate annotations on the models in asyncapi.yaml file or any other means ? I need a model with annotations to be generated:
[BindingKey("MiningBlock.Archived")]
[RoutingKey("MiningBlock.Archived")]
public partial class MiningBlockArchivedEvent
{
public string? Id { get; set; }
public string? FullName { get; set; }
public string? Timestamp { get; set; }
public Dictionary<string, dynamic>? AdditionalProperties { get; set; }
}
Please let me know if this is possible ? This is very urgent piece for my work to progress.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions