<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BUG - GET REST API returns strings for non-string primitives in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/bug-get-rest-api-returns-strings-for-non-string-primitives/m-p/326477#M13478</link>
    <description>&lt;P&gt;Here's the setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In Nuxeo Studio, create new Document Type "mydoc"&lt;/LI&gt;
&lt;LI&gt;On Schema tab, add a field "foo" type "Boolean"&lt;/LI&gt;
&lt;LI&gt;Save&lt;/LI&gt;
&lt;LI&gt;In DM, update project from studio&lt;/LI&gt;
&lt;LI&gt;Create a new "mydoc" in Document Management&lt;/LI&gt;
&lt;LI&gt;Call REST API /nuxeo/api/v1/path/default-domain/workspaces/myworkspace/mydoc&lt;/LI&gt;
&lt;LI&gt;In returned JSON, the field "foo" is returned as "true" or "false"  (&lt;STRONG&gt;with&lt;/STRONG&gt; the quotes)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;By comparison, POSTing to the same API allows a JSON boolean to be posted.  It would seem to be most useful if the GET API worked the same way.&lt;/P&gt;
&lt;P&gt;When I get some time I'll go through the Nuxeo DM code and find the spot where this is ocurring and post follow-up comment on this question.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2013 17:41:11 GMT</pubDate>
    <dc:creator>russtrotter_</dc:creator>
    <dc:date>2013-11-26T17:41:11Z</dc:date>
    <item>
      <title>BUG - GET REST API returns strings for non-string primitives</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/bug-get-rest-api-returns-strings-for-non-string-primitives/m-p/326477#M13478</link>
      <description>&lt;P&gt;Here's the setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In Nuxeo Studio, create new Document Type "mydoc"&lt;/LI&gt;
&lt;LI&gt;On Schema tab, add a field "foo" type "Boolean"&lt;/LI&gt;
&lt;LI&gt;Save&lt;/LI&gt;
&lt;LI&gt;In DM, update project from studio&lt;/LI&gt;
&lt;LI&gt;Create a new "mydoc" in Document Management&lt;/LI&gt;
&lt;LI&gt;Call REST API /nuxeo/api/v1/path/default-domain/workspaces/myworkspace/mydoc&lt;/LI&gt;
&lt;LI&gt;In returned JSON, the field "foo" is returned as "true" or "false"  (&lt;STRONG&gt;with&lt;/STRONG&gt; the quotes)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;By comparison, POSTing to the same API allows a JSON boolean to be posted.  It would seem to be most useful if the GET API worked the same way.&lt;/P&gt;
&lt;P&gt;When I get some time I'll go through the Nuxeo DM code and find the spot where this is ocurring and post follow-up comment on this question.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/bug-get-rest-api-returns-strings-for-non-string-primitives/m-p/326477#M13478</guid>
      <dc:creator>russtrotter_</dc:creator>
      <dc:date>2013-11-26T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: BUG - GET REST API returns strings for non-string primitives</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/bug-get-rest-api-returns-strings-for-non-string-primitives/m-p/326478#M13479</link>
      <description>&lt;P&gt;Dug through the nuxeo-features code base and found&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/bug-get-rest-api-returns-strings-for-non-string-primitives/m-p/326478#M13479</guid>
      <dc:creator>russtrotter_</dc:creator>
      <dc:date>2013-11-26T20:08:34Z</dc:date>
    </item>
  </channel>
</rss>

