Created
February 10, 2025 15:05
-
-
Save lovemycodesnippets/6f79757a5fa5f067f7a1d107df198978 to your computer and use it in GitHub Desktop.
Example: OpenAPI Overlay adds a license to an OpenAPI description:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overlay: 1.0.0 | |
info: | |
title: Add MIT license | |
version: 1.0.0 | |
actions: | |
- target: '$.info' | |
update: | |
license: | |
name: MIT | |
url: https://opensource.org/licenses/MIT |
Thank you. I've show this to the author of that post, we'll see if changes need to be made.
Thank you @lovemycodesnippets - this was replaced by https://gist.github.com/lornajane/ad103d827323f1f916063885ccf4def0#file-overlay-yaml and the article was updated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The overlay gist TAB characters which mess with the YAML indentation. I believe this should be:
I also suggest renaming the gist, i.e. as
license.overlay.yaml
but that would affect the article. I'm not sure if updating the gist on itHub will result in a corrected version on The New Stack or if the article needs a fix as well.