I've recently started using this tool.
Explored search results, trying to find Spectral rules to check the file type of the given OpenAPI specification file: is it .yaml or .json.
The reason is, we are currently trying to establish some sort of consistency when receiving spec files from the API developers. Thanks!
p.s.:
Having such a Spectral rule would be easier to have its results to be included in the report file & resulting pipeline artifact.
Probably, if no such Spectral rules, one of the last resorts could be writing some bash or python.