-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support traits #346
Comments
Hi @Tenischev For this issue, Do we need to generate the result the result in the particular file, or just need to update the java-spring-template to accept the fields for operation and message trait. For example:
Do we need to generate the result somewhere in the src folder or just make the generator accept all these parameters? Thanks |
@AayushSaini101 both. Template should support |
Thanks for the explanation |
@Tenischev is this a bug you have found? In theory, generator should already have applied traits for you right? 🤔 |
@jonaslagoni you are right, it's my mistake I used a bit wrong API and encounter other not realized functionality of template and interpret it like a trait problem. My bad, this issue is not valid. |
Reason/Context
This is long missed feature of template to support
trait
s.Description
Support of operation and message trait is required.
According to Spec, trait applied as JSON Patch.
Probably, the better way to apply trait, is to create
generator:before
hook and compute result operation and message, so all other template generation will not be affected.The text was updated successfully, but these errors were encountered: