You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the generated Java model code, we're assuming we want to generate a model that using the same name as defined in the schema. Thus, as long as the schema name does not violate certain rules, the generated model will always be
@JsonProperty("name")
privatefinalStringname;
but sometimes we want to customize the property name or the variable name by self-defined it, such as
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the generated Java model code, we're assuming we want to generate a model that using the same name as defined in the schema. Thus, as long as the schema name does not violate certain rules, the generated model will always be
but sometimes we want to customize the property name or the variable name by self-defined it, such as
Is it possible to do so with swagger?
Beta Was this translation helpful? Give feedback.
All reactions