Siegfried Goeschl created FREEMARKER-200:
--------------------------------------------

             Summary: [freemarker-generator] Handle non-standard content types 
for JSON & YAML data models 
                 Key: FREEMARKER-200
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-200
             Project: Apache Freemarker
          Issue Type: Improvement
            Reporter: Siegfried Goeschl


When working with data models I noticed that some sites use different content 
types for JSON and YAML
 * Sometime JSON comes with "text/plain"
 * For YAML eitherĀ "application/yaml", "text/yaml" or "text/plain" is usedĀ 

The problem is not obvious without using cUrl to check the HTTP headers 
manually so it makes sense to to add some logic when creating a data model 
(hash directly exposed)

The problem also exists for loading data source but here the user usually knows 
what he/she is loading so I currently don't want to change the received content 
type on the fly



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to