Back to skills
SKILL.md
Apply Openapi Overlay 1
ASecurityUse 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
Works with
Security analysis
100/100npx -y skills add David-Li0406/meta-skill-evloving --skill apply-openapi-overlay-1 --agent claude-codeAre you the author of Apply Openapi Overlay 1?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-apply-openapi-overlay-1)---
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
Comments
Loading comments…