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?
We use server code generation with the
strict-server: trueparameter. During generation, we obtain the following structures for the responseAnd 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?