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
Hello,
i want to know if there is a option to set a specif node to get the result of the json ?
All endpoint of our api return same schema response ApiResult[T],
for exemple when i get user with findById, on the node result i get the User ApiResult[User]
the problem is, on swagger spec we define as return the model User, on error we describes Error ect ...
in the spec swagger we can't template this and its not a good idea of write model ApiResultUser, ApiResultAddress, ApiResultEnterprise, ... the number of class is huge
i hope there is a workaround, a way to change the method ApiInvoked.deserialize ?
otherwise the code generate is not usable, that fail on the validation of json
The text was updated successfully, but these errors were encountered:
As a workaround, you can describe result as type: object, which means arbitrary JSON object and the developers will need to deserialize the object themselves.
Description
Hello,
i want to know if there is a option to set a specif node to get the result of the json ?
All endpoint of our api return same schema response ApiResult[T],
for exemple when i get user with findById, on the node result i get the User ApiResult[User]
the user is on node result
the problem is, on swagger spec we define as return the model User, on error we describes Error ect ...
in the spec swagger we can't template this and its not a good idea of write model ApiResultUser, ApiResultAddress, ApiResultEnterprise, ... the number of class is huge
i hope there is a workaround, a way to change the method ApiInvoked.deserialize ?
otherwise the code generate is not usable, that fail on the validation of json
The text was updated successfully, but these errors were encountered: