Skip to content

feat(coderd/httpapi): add QueryParamParser.JSONStringMap - #16578

Merged
johnstcn merged 3 commits into
mainfrom
cj/queryparser-stringmap
Feb 18, 2025
Merged

johnstcn merged 3 commits into
mainfrom
cj/queryparser-stringmap

Conversation

@johnstcn

@johnstcn johnstcn commented Feb 14, 2025 •

Copy link
Copy Markdown
Member

This PR provides a convenience function for parsing a map[string]string from a query parameter.

Context: #16558 (comment)

@mafredri mafredri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice addition! Could we also update existing code to use this implementation? Should serve to also verify its behavior.

Comment thread coderd/httpapi/queryparams.go Resolved
@johnstcn
johnstcn force-pushed the cj/queryparser-stringmap branch from 1ade009 to 4fec855 Compare February 18, 2025 12:56
@johnstcn

Copy link
Copy Markdown
Member Author

Nice addition! Could we also update existing code to use this implementation? Should serve to also verify its behavior.

Updated!

@johnstcn
johnstcn merged commit 3a77375 into main Feb 18, 2025
@johnstcn
johnstcn deleted the cj/queryparser-stringmap branch February 18, 2025 14:14
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants