Skip to content

Fix missing ModelBinder for outputFormatParams in GetTableDataByPost#538

Merged
likp merged 1 commit intoPxTools:mainfrom
avocodetoast:patch-1
Feb 17, 2026
Merged

Fix missing ModelBinder for outputFormatParams in GetTableDataByPost#538
likp merged 1 commit intoPxTools:mainfrom
avocodetoast:patch-1

Conversation

@avocodetoast
Copy link
Contributor

POST requests to the data endpoint return 400 when multiple outputFormatParams are specified in the query string (e.g. outputFormatParams=UseTexts,IncludeTitle), while the same query works fine with GET.

The cause is that GetTableDataByPost is missing the ModelBinder(typeof(OutputFormatParamsModelBinder)) attribute on the outputFormatParams parameter, which GetTableData (GET) has. Without it, ASP.NET Core falls back to default binding, which cannot handle comma-separated enum values.

Fix: add the missing attribute, consistent with the GET endpoint.

@likp likp merged commit 682a633 into PxTools:main Feb 17, 2026
5 of 6 checks passed
@avocodetoast avocodetoast deleted the patch-1 branch February 17, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants