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

Lower case response fields don't show in response and don't warn or error #848

Closed
wesbillman opened this issue Jan 30, 2024 · 2 comments · Fixed by #1016
Closed

Lower case response fields don't show in response and don't warn or error #848

wesbillman opened this issue Jan 30, 2024 · 2 comments · Fixed by #1016
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@wesbillman
Copy link
Collaborator

If a verb has a response struct like

type SIOPV2AuthRequest struct {
	scope string
}

The http response will not have scope and it's pretty difficult to debug

@wesbillman wesbillman added the bug Something isn't working label Jan 30, 2024
@github-project-automation github-project-automation bot moved this to Todo in FTL Jan 30, 2024
@alecthomas
Copy link
Collaborator

This is normal Go behaviour but we could warn/error about it, because FTL can't do anything with these fields.

@alecthomas
Copy link
Collaborator

This should error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants