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
Is your feature request related to a problem? Please describe.
The class that is generated when using the "useSingleRequestParameter" option with static for the Java Spring-client could preferably have an implementation for equals and hashcode so the model is easier to use.
For example in a testing context with Mockito where the service is instantiating the class with a number of parameters and the mock is then ensuring that the apiClient is invoked with the correct "EXPECTED_PARAMETER" instance.
Is your feature request related to a problem? Please describe.
The class that is generated when using the "useSingleRequestParameter" option with
static
for the Java Spring-client could preferably have an implementation for equals and hashcode so the model is easier to use.For example in a testing context with Mockito where the service is instantiating the class with a number of parameters and the mock is then ensuring that the apiClient is invoked with the correct "EXPECTED_PARAMETER" instance.
Describe the solution you'd like
The class defines an equals and a hashcode that compares the values of the variables of the class.
Describe alternatives you've considered
Letting the openapi-generator user define it themselves (e.g., either by overriding the implementation themselves, or by using lombok or similar).
Additional context
The text was updated successfully, but these errors were encountered: