Want to change @JsonProperty property in the java model which is being created from TypeSpec. #4207
Unanswered
shikshartin-coder
asked this question in
Q&A
Replies: 1 comment
-
I'm sorry I don't understand what you are trying to do. Can you say more, or give an example of the output you are seeing and how you want to change it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So basically as the title suggests. I looked up some decorators docs to see if I can use those to modify what property is being set in @JsonProperty in the Java file for various fields. But the example used was of console.log. The only way I found to set some metadata to the decorators was through stateMap or stateSet which uses key. But I don't think any key is required in my scenario. Is there any way to change @JsonProperty from the field name when creating a model ?
Beta Was this translation helpful? Give feedback.
All reactions