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
- links to