When field-metadata tag writes "type" attribute for a field it misses a comma, 
rendering json syntactically incorrect
---------------------------------------------------------------------------------------------------------------------

                 Key: STS-852
                 URL: http://www.stripesframework.org/jira/browse/STS-852
             Project: Stripes
          Issue Type: Bug
          Components: Tag Library
    Affects Versions: Release 1.5.6
            Reporter: Carl Krig


Sample output from <stripes:field-metadata>: ... 
"transferAmount":{type:"BigDecimal"required:true,ignore:false ...

Above, the comma is missing before the "required" property.

Problem is in FieldMetadataTag.java lines 152-157 + 162. Suggested change on 
162, mimicking 216;
<fieldInfo.append("required:").append(data.required())
>fieldInfo.append(fieldInfo.length() > 0 ? "," : 
>"").append("required:").append(data.required())


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to