View Issue Details

IDProjectCategoryView StatusLast Update
0000652fileGeneralpublic2025-05-08 19:54
Reporteronnimonni Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.41 
Summary0000652: swagger.json is mistakenly identified for 'exported SGML document text' instead of 'JSON Data'
DescriptionI 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 Reproduce1. 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 Informationjq 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.
TagsNo tags attached.

Activities

onnimonni

2025-05-08 19:54

reporter  

swagger (1).json (274,445 bytes)

Issue History

Date Modified Username Field Change
2025-05-08 19:54 onnimonni New Issue
2025-05-08 19:54 onnimonni File Added: swagger (1).json