Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Support binding text content to a string #1497

Closed
danroth27 opened this issue Nov 1, 2014 · 1 comment
Closed

Support binding text content to a string #1497

danroth27 opened this issue Nov 1, 2014 · 1 comment
Labels

Comments

@danroth27
Copy link
Member

We support returning strings as text.

Seems like this should work for the request: Post([FromBody] string bodyText)

@yishaigalatzer
Copy link
Contributor

We don't think it is a good idea to promote this pattern. The users can always write the formatter, but since we think most of the time this is a mistake we shouldn't put it in the framework.

This could go on a contrib style repo if someone finds it useful, but it shouldn't go out to the masses.

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

No branches or pull requests

2 participants