Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle request/response parameter being Struct #6

Open
kujtimiihoxha opened this issue Sep 8, 2017 · 1 comment
Open

handle request/response parameter being Struct #6

kujtimiihoxha opened this issue Sep 8, 2017 · 1 comment

Comments

@kujtimiihoxha
Copy link
Owner

If the response/request parameter is a struct and not a primitive like string,int etc.. the generated endpoint will not be compilable because it will not know where to import that parameter in :


// FooRequest collects the request parameters for the Foo method.
type FooRequest struct {
	S MyStruct //<----- Here
}

MyStruct can be in any place like e.x in the service package or elsewhere, I need to find a way to find these cases and handle them differently.

@kujtimiihoxha
Copy link
Owner Author

kujtimiihoxha commented Sep 24, 2017

Fixed in https://github.com/kujtimiihoxha/kit I will need to implement the same logic here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant