The filename must include openapi or swagger and the extension must be yaml, yml, or json.
openapi
swagger
yaml
yml
json