Want to change @JsonProperty property in the java model which is being created from TypeSpec. #4207
Replies: 2 comments
-
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.
-
I am not sure whether I get the question. I assume you are talking about a property with name e.g. "foo" in TypeSpec, but you want There is an Note that the latest version of the http-client-java emitter no longer use Jackson (hence no |
Beta Was this translation helpful? Give feedback.
-
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