Stoplight
7 months agoCommunity Manager
X-Extensions appearing in published OpenApi docs
Originally posted by user MariusSc78 to the Stoplight Community on 01/05/2024 at 11:08 ET.
According to the docs, extension should not be in open api bundled docs that users downloads. But it seems that this is not the case.
https://docs.stoplight.io/docs/platform/37d160068e33c-export-files#export-published-api-documents
Steps to reproduce:
- Create an API
- Add an X-Extension (e.g. x-my-secret: 354365) to any element within the API
- Publish the changes (in our case to github)
- Open a new in-private browser tab
- Visit the public url
- Click on the API and download the Open API spec in the Export drop-down list.
- Open the file downloaded (either original or bundled)
Result:
The x-my-secret extension can be found in the file
Expected:
The extension is not in it
Further information:
I can also find the x-stoplight extensions.