Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DavidBiesack/92dd0a7d71aaeaa838cec1e902520082 to your computer and use it in GitHub Desktop.
Save DavidBiesack/92dd0a7d71aaeaa838cec1e902520082 to your computer and use it in GitHub Desktop.
Example: OpenAPI Overlay adds a license to an OpenAPI description:
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
@DavidBiesack
Copy link
Author

DavidBiesack commented Feb 11, 2025

The Initial version has TAB characters which mess with the YAML indentation. I believe this should be:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment