manage-openapi-overlays

Apply and validate OpenAPI overlays with JSONPath targets for SDK generation.

1.8k|375|Updated Jan 15, 2025
One-click install
npx skills add https://github.com/trycompai/comp --skill manage-openapi-overlays-trycompai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-openapi-overlays
Source: https://github.com/trycompai/comp/tree/main/.agents/skills/manage-openapi-overlays
Command: npx skills add https://github.com/trycompai/comp --skill manage-openapi-overlays-trycompai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Overlay-based customization lets teams tailor an OpenAPI spec used for SDK generation without editing the original source, preventing drift and preserving source integrity.

Core Features & Use Cases

  • Create and edit overlays to adjust operation metadata, group endpoints, and apply settings like retries, pagination, and security extensions.
  • Apply overlays to transform specs for SDK generation without touching the source.
  • Validate overlays and compare specs to generate changes automatically.

Quick Start

Create an overlay file, apply it to your OpenAPI spec, and validate the results.

Frequently Asked Questions about manage-openapi-overlays

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize an OpenAPI spec for SDK generation without editing the source file?

OpenAPI overlays allow you to customize specs for SDK generation without editing the source file. By applying overlays using JSONPath targets, you can tailor endpoints, names, and security configurations while preventing drift and preserving source integrity.

What is an OpenAPI overlay and when do I need to use one?

An OpenAPI overlay is a customization layer that modifies API specifications using JSONPath targets. You need to use one when you want to adjust operation metadata, group endpoints, or apply settings like retries and pagination without directly altering the original source spec.

How do I apply and validate overlays to transform my API specifications?

To apply and validate overlays, you create an overlay file targeting specific JSONPath elements and apply it to your OpenAPI spec. The validation process verifies the overlay structure, targets, and updates to ensure reliable customization and generate changes automatically.

Can I use speakeasy tooling to add security extensions and retries to my API operations?

Yes, you can use speakeasy tooling to create and apply overlays that add security extensions, retries, and pagination to your API operations. This allows you to apply these settings across development workflows without touching the source specification.

What is the best way to compare OpenAPI specs and generate changes automatically?

The best way to compare OpenAPI specs and generate changes automatically is by validating overlays against the target specification. This process verifies the overlay structure and updates, ensuring reliable transformation and identifying the exact modifications made.

Why should I use overlays instead of directly modifying my OpenAPI source spec?

You should use overlays instead of directly modifying your OpenAPI source spec to prevent drift and preserve source integrity. Overlay-based customization lets teams tailor endpoints and settings for SDK generation while keeping the original specification untouched.