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

Introduce ItemsResponse #404

Closed
wants to merge 1 commit into from
Closed

Introduce ItemsResponse #404

wants to merge 1 commit into from

Conversation

sebm253
Copy link
Member

@sebm253 sebm253 commented Dec 1, 2024

No description provided.

Comment on lines +9 to +11
var response struct {
Items []T `json:"items"`
}
Copy link
Member Author

@sebm253 sebm253 Dec 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would moving this into its own type make more sense than redeclaring it in every call?

@sebm253 sebm253 marked this pull request as draft December 1, 2024 22:30
@sebm253 sebm253 marked this pull request as ready for review December 1, 2024 22:36
Copy link
Member

@topi314 topi314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think ItemResponse should be exposed to the outside,
this type should be unexported imo

rest/soundboard_sounds.go Show resolved Hide resolved
rest/applications.go Show resolved Hide resolved
@sebm253 sebm253 marked this pull request as draft December 1, 2024 23:34
@sebm253
Copy link
Member Author

sebm253 commented Dec 2, 2024

closing this for now

@sebm253 sebm253 closed this Dec 2, 2024
@sebm253 sebm253 deleted the feature/items-response branch December 2, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants