[ 
https://issues.apache.org/jira/browse/DAFFODIL-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Lawrence resolved DAFFODIL-1852.
--------------------------------------
    Resolution: Duplicate

The MetaData API was developed as part of DAFFODIL-2832, which now provides 
type information. In Daffodil 4.0.0, these classes are all now found in in the 
org.apache.daffodi.api.metadata package. And the JSONInfosetOutputter does use 
this information to disable quotes for numeric types.

Marking as a duplicate.


> Data type not available in infoset events
> -----------------------------------------
>
>                 Key: DAFFODIL-1852
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1852
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: API, Back End
>    Affects Versions: 2.0.0
>            Reporter: Mike Beckerle
>            Priority: Minor
>
> Daffodil doesn't pass the datatype for a simple value as part of the 
> StartElement or StartArray events. 
> This means that you can't, for example, tell whether to create the JSON 
> member as a string or as a number (i.e. whether to include the "" or not).  
> In XML output, this prevents putting an xsi:type="..." element on the simple 
> types, which is sometimes of value.
> Daffodil ships a JSON outputter, but it just renders everything as a string, 
> and the XML outputter doesn't add xsi:type attributes. 
> The infoset datatype member is required part of the DFDL infoset according to 
> the spec, so the lack of this information is non-conformance to the spec.
> The xsi:type attribute is planned (JIRA DFDL-182 and DFDL-1633 also) - it 
> would be optional, for the XML outputters, and would either be checked or 
> ignored by XML inputters.
> The JSON inputters/outputters would have to be adapted to JSON that does not 
> have the "..." around everything.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to