Skip to content
Back to skills

Apply Openapi Overlay 1

ASecurity

Use when applying an overlay file to a spec. Triggers on "apply overlay", "overlay apply", "merge overlay", "speakeasy overlay apply"

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
testingbashtestingapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill apply-openapi-overlay-1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Apply Openapi Overlay 1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Apply Openapi Overlay 1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-apply-openapi-overlay-1/badge)](https://www.skillsdirectory.com/skills/david-li0406-apply-openapi-overlay-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: apply-openapi-overlay
description: Use when applying an overlay file to a spec. Triggers on "apply overlay", "overlay apply", "merge overlay", "speakeasy overlay apply"
license: Apache-2.0
---

# apply-openapi-overlay

Apply an overlay file to transform an OpenAPI spec.

## When to Use

- You have an overlay file ready to apply to a spec
- Testing overlay changes before adding to workflow
- User says: "apply overlay", "merge overlay", "overlay apply"

## Inputs

| Input | Required | Description |
|-------|----------|-------------|
| OpenAPI spec | Yes | Source spec (`-s`) |
| Overlay file | Yes | Overlay to apply (`-o`) |

## Outputs

| Output | Description |
|--------|-------------|
| Modified spec | Transformed OpenAPI spec (`--out`) |

## Command

```bash
speakeasy overlay apply -s <spec-path> -o <overlay-path> --out <output-path>
```

## Example

```bash
# Apply overlay and output merged spec
speakeasy overlay apply -s openapi.yaml -o my-overlay.yaml --out openapi-modified.yaml
```

## Using in Workflow (Recommended)

Better approach - add overlay to workflow.yaml:

```yaml
sources:
  my-api:
    inputs:
      - location: ./openapi.yaml
    overlays:
      - location: ./naming-overlay.yaml
      - location: ./grouping-overlay.yaml
```

Overlays are applied in order, so later overlays can override earlier ones.

## Troubleshooting

| Error | Cause | Solution |
|-------|-------|----------|
| "target not found" | JSONPath doesn't match | Verify path exists in spec with exact casing |
| "invalid overlay" | Malformed YAML | Check overlay structure matches spec |
| No changes applied | Wrong target path | Use `$.paths['/exact-path']` syntax |

## Related Skills

- `create-openapi-overlay` - Create overlay files
- `regenerate-sdk` - Run workflow with overlays applied
- `fix-validation-errors-with-overlays` - Use overlays to fix lint issues

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…