anz-bank / sysl-go

Communication library used by SYSL-generated code written in Go.
Apache License 2.0
10 stars 14 forks source link

Fix generation using arrai #173

Closed joshcarp closed 4 years ago

joshcarp commented 4 years ago

The following problems presented with https://github.com/anz-bank/sysl-template

// Service interface for simple
type Service interface {
    Get(ctx context.Context, req *GetRequest) (*Welcome, error)
    GetFoobarList(ctx context.Context, req *GetFoobarListRequest) (*jsonplaceholder.todosResponse, error)
}

There is a reference to an unexported field, that should be exported; ie *jsonplaceholder.TodosResponse instead of *jsonplaceholder.todosResponse

This is the fix to make it work

This isn't to be merged in immediately, as there is some code gen that relies on the current version of arrai and these changes might be breaking changes

joshcarp commented 4 years ago

Doesn't seem to impact other repos which I tested locally