Closed czlowiek488 closed 3 years ago
For now it is the most important feature for me. If you can please prioritize it.
Thanks for the feature request @czlowiek488
This is because the simplifier does not split enum models into separate models as the generator expects. I will add this feature as soon as the new simplifier is merged unless someone else has solved this.
:tada: This issue has been resolved in version 0.10.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Context
I have a function
saveProject
which save a asyncApiMessage as a document to a database. This document is message wrapped in Envelope with additional properties. A message looks like this:My document look like this:
Reason#1
My problem with this is that typescript treat generated "tms.event.project.created" as a string not as part of EventName. To make this work I had to replace Envelope with this.
Reason#2
I have to declare EventName enum by my own which can lead to unconsistency between event names from specification and enum written by me.
Description
I need a way to create enum in asyncapi and a way to specify field type as enum element. So something like this: (I modified json below from this answer in SO)
should generate something like this.