Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
7 months ago

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:

  1. Create an API
  2. Add an X-Extension (e.g. x-my-secret: 354365) to any element within the API
  3. Publish the changes (in our case to github)
  4. Open a new in-private browser tab
  5. Visit the public url
  6. Click on the API and download the Open API spec in the Export drop-down list.
  7. 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.

No RepliesBe the first to reply