View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000652 | file | General | public | 2025-05-08 19:54 | 2025-05-08 19:54 |
Reporter | onnimonni | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.41 | ||||
Summary | 0000652: swagger.json is mistakenly identified for 'exported SGML document text' instead of 'JSON Data' | ||||
Description | I was testing 'file' for several different random things I had in my Downloads folder and tried it with swagger.json from https://api.zone.eu/v2 and it reports it as 'exported SGML document text'. My best understanding is that SGML documents are xml instead of json and swagger doesn't qualify for this? See more in: https://en.wikipedia.org/wiki/Standard_Generalized_Markup_Language | ||||
Steps To Reproduce | 1. Visit https://api.zone.eu/v2 2. Click Download 3. $ file ~/Downloads/swagger.json swagger.json: exported SGML document text, Unicode text, UTF-8 text, with very long lines (6180) | ||||
Additional Information | jq parses the file properly so the JSON syntax seems to be valid: $ jq . swagger.json | head -n 4 { "openapi": "3.0.0", "info": { "title": "ZoneID API", I tried also with: $ file -k swagger.json swagger.json: exported SGML document text, Unicode text, UTF-8 text, with very long lines (6180) I attached the swagger.json in question also to the attachments. | ||||
Tags | No tags attached. | ||||