OpenAPI Specification 2.0 (formerly Swagger 2.0) defines a JSON/YAML format for describing RESTful APIs: paths, operations, parameters, responses, schemas, and security. Use this skill when creating or editing Swagger 2.0 specs, validating structure, or generating code/documentation from them.
The skill is based on OpenAPI Specification 2.0, generated at 2026-01-30.
Core References
| Topic |
Description |
Reference |
| Format and Structure |
Document format, file structure, data types |
core-format-and-structure |
| Fixed and Patterned Fields |
Fixed vs patterned field names in the schema |
core-fixed-patterned-fields |
| Swagger Object |
Root document, required/optional fields, extensions |
core-swagger-object |
| Info and Metadata |
Info, Contact, License objects |
core-info-metadata |
| Tags and External Docs |
Tag Object, External Documentation Object |
core-tags-and-external-docs |
| Reference Object |
$ref, JSON Pointer, same-document and external file references |
core-reference-object |
| Data Types and Formats |
Primitives, format table, validation, file type |
core-data-types-and-formats |
| MIME Types |
consumes/produces, RFC 6838, examples |
core-mime-types |
| HTTP Status Codes |
Response keys, default response, IANA/RFC 7231 |
core-http-status-codes |
| Path Templating |
Curly braces, path parameters, name matching |
core-path-templating |
| Header Object |
Response header definition (type, format, items, validation) |
core-header-object |
| Headers Object |
Container for response headers (name → Header Object) |
core-headers-object |
| Items Object |
Non-body array items (parameters, headers) |
core-items-object |
| Example Object |
Response examples by MIME type |
core-example-object |
Paths and Operations
| Topic |
Description |
Reference |
| Paths and Operations |
Paths Object, Path Item, Operation Object |
paths-and-operations |
| Path Item $ref |
External path definition, conflict behavior |
path-item-ref |
Parameters and Responses
| Topic |
Description |
Reference |
| Parameters |
Parameter locations (path, query, header, body, formData) |
parameters |
| collectionFormat |
csv, ssv, tsv, pipes, multi and where they apply |
parameters-collection-format |
| Parameters Definitions (Reuse) |
Root-level parameters, reuse via $ref |
parameters-definitions-reuse |
| Responses |
Responses Object, Response Object |
responses |
| Responses Definitions (Reuse) |
Root-level responses, reuse via $ref |
responses-definitions-reuse |
Schemas and Definitions
Security
Best Practices
Advanced