We use server code generation with the strict-server: true parameter. During generation, we obtain the following structures for the response
GetHealthcheck200JSONResponse{
Timestamp: time.Now().UnixMilli(),
}
GetHealthcheck500JSONResponse{
Timestamp: time.Now().UnixMilli(),
}
And this happens with absolutely any response, a separate structure is created for each error code specified in the API contract. We find this inconvenient, but couldn't figure out how to make a generic structure or our own wrapper. Could you suggest how to be in this situation?
Reactions are currently unavailable
We use server code generation with the strict-server: true parameter. During generation, we obtain the following structures for the response
And this happens with absolutely any response, a separate structure is created for each error code specified in the API contract. We find this inconvenient, but couldn't figure out how to make a generic structure or our own wrapper. Could you suggest how to be in this situation?