Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-200

[freemarker-generator] Handle non-standard content types for JSON & YAML data models

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              sgoeschl Siegfried Goeschl
              sgoeschl Siegfried Goeschl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: