speakeasy-api

validate-openapi-spec

@speakeasy-api/validate-openapi-spec
speakeasy-api
377
30 forks
Updated 1/18/2026
View on GitHub

Use when checking if an OpenAPI spec is valid, looking for errors, or running `speakeasy lint`

Installation

$skills install @speakeasy-api/validate-openapi-spec
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathskills/validate-openapi-spec/SKILL.md
Branchmain
Scoped Name@speakeasy-api/validate-openapi-spec

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: validate-openapi-spec description: Use when checking if an OpenAPI spec is valid, looking for errors, or running speakeasy lint

validate-openapi-spec

Use speakeasy lint to check for errors and warnings.

Command

speakeasy lint openapi -s <path-to-spec>

Output Categories

SeverityMeaningAction
ErrorBlocks SDK generationMust fix
WarningMay cause issuesShould fix
HintBest practice suggestionConsider fixing

Common Validation Issues

IssueSolution
Missing operationIdAdd operationId or use speakeasy suggest operation-ids
Invalid $refFix the reference path
Missing response schemaAdd response schema definitions
Duplicate operationIdMake operation IDs unique

AI-Friendly Output

For commands with large outputs, pipe to grep or tail to reduce context:

speakeasy lint openapi -s ./openapi.yaml 2>&1 | grep -E "(error|warning)"