Closed springwiz closed 4 years ago
An endpoint returning a sequence of type defined in the downstream sysl generates wrong go code.
/service-docs: GET: | Return whole service docs return ok <: sequence of ServiceDoc return error <: status !type ServiceDoc: swagger <: string: @json_tag = "swagger" openapi <: string: @json_tag = "openapi" !type Status: statusField <: string
generates the following code in the service.go:
// GetServiceDocsList ... func (s *Client) GetServiceDocsList(ctx context.Context, req *GetServiceDocsListRequest) (*ServiceDoc, error) { required := []string{} var okResponse ServiceDoc ........ OkServiceDocResponse, ok := result.Response.(*ServiceDoc) ......... return OkServiceDocResponse, nil }
A similar issue was fixed in the sysl transforms, this has been found in arrai transforms.
An endpoint returning a sequence of type defined in the downstream sysl generates wrong go code.
generates the following code in the service.go:
A similar issue was fixed in the sysl transforms, this has been found in arrai transforms.