You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Siegfried Goeschl (Jira)" <ji...@apache.org> on 2021/10/25 17:39:00 UTC

[jira] [Assigned] (FREEMARKER-200) [freemarker-generator] Handle non-standard content types for JSON & YAML data models

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

Siegfried Goeschl reassigned FREEMARKER-200:
--------------------------------------------

    Assignee: Siegfried Goeschl

> [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
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>
> 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)