Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
After grabbing the latest Nuget my conneg enabled views are now
rendering as XML in the browser.
Side note: It looks like the XmlFormatter really hates IEnumerable<T>
in output models. I had to start returning arrays to prevent the XML
formatter from blowing up with a
Cannot serialize member Foo of type
System.Collections.Generic.IEnumerable`1[[FQTN]] because it is an
interface.
Looks like adding Formatter<T> does not fix the problem. I applied
your MakeAsymmetricJson() to the appropriate behaviors with success to
get me going for now. Of course down the road we may have customers
crazy enough to want XML.
On Wed, Feb 8, 2012 at 2:49 PM, Jeremy D. Miller
>> fubumvc-deve...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/fubumvc-devel?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "FubuMVC Development Group" group.
>> To post to this group, send email to fubumv...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> fubumvc-deve...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/fubumvc-devel?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To post to this group, send email to fubumv...@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-deve...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To post to this group, send email to fubumv...@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-deve...@googlegroups.com.
Media.ApplyContentNegotiationTo(x => x.InputType().CanBeCastTo<IApi>()
|| x.InputType().CanBeCastTo<IUnauthenticatedApi>());
So you are saying I can add a .Formatter<JsonFormatter>(); and all is well?
On Wed, Feb 8, 2012 at 2:34 PM, Jeremy D. Miller
<jeremy...@yahoo.com> wrote:
> fubumvc-deve...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To post to this group, send email to fubumv...@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-deve...@googlegroups.com.