-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is your feature request related to a problem? Please describe.
IMHO it is best practice to use shared code/assembly/nuget packages that contain the models exposed/shared between client/server API surface.
Describe the solution you'd like
IMHO if the developer has access to shared code/assembly/nuget packages that contain API model information this should be used/added as a reference to the generated strongly typed client.
If the model package is not available or invalid, doesn't match the return/parameters exposed by API and included in the specification then it should be ok to generate the model.
It is also good practice from the point of view with regards versioning of the model.
Describe alternatives you've considered
This could also save time with regard to generation as the model may/may not change; but the API method calls may change and likewise the opposite may be true.