{
    "url": "https://delaparra-services.nl/skills/openapi-spec-generation",
    "locale": "en",
    "title": "OpenAPI Spec Generation | DeLaParra Services",
    "description": "Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/openapi-spec-generation",
        "nl": "https://delaparra-services.nl/nl/skills/openapi-spec-generation"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/skills/openapi-spec-generation.csv",
        "md": "https://delaparra-services.nl/skills/openapi-spec-generation.md",
        "json": "https://delaparra-services.nl/skills/openapi-spec-generation.json",
        "zip": "https://delaparra-services.nl/skills/openapi-spec-generation.zip",
        "pdf": "https://delaparra-services.nl/skills/openapi-spec-generation.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation.csv",
            "encodingFormat": "text/csv",
            "name": "openapi-spec-generation.csv"
        },
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation.json",
            "encodingFormat": "application/json",
            "name": "openapi-spec-generation.json"
        },
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation.md",
            "encodingFormat": "text/markdown",
            "name": "openapi-spec-generation.md"
        },
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation.pdf",
            "encodingFormat": "application/pdf",
            "name": "openapi-spec-generation.pdf"
        },
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation.zip",
            "encodingFormat": "application/zip",
            "name": "openapi-spec-generation.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/openapi-spec-generation/download",
            "encodingFormat": "application/zip",
            "name": "openapi-spec-generation-files.zip"
        }
    ],
    "markdown": "# OpenAPI Spec Generation\n\n \n\nGenerate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.\n\n \n\n**Licence** MIT\n\n \n\n**Source** wshobson/agents\n\n [Download zip](<https://delaparra-services.nl/skills/openapi-spec-generation/download>)   \n\n# OpenAPI Spec Generation\n\n \n\nComprehensive patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.\n\n \n\n## When to Use This Skill\n\n \n\n- Creating API documentation from scratch \n- Generating OpenAPI specs from existing code \n- Designing API contracts (design-first approach) \n- Validating API implementations against specs \n- Generating client SDKs from specs \n- Setting up API documentation portals\n\n \n\n## Core Concepts\n\n \n\n### 1. OpenAPI 3.1 Structure\n\n \n\n```\nopenapi: 3.1.0\ninfo:\n  title: API Title\n  version: 1.0.0\nservers:\n  - url: https://api.example.com/v1\npaths:\n  /resources:\n    get: ...\ncomponents:\n  schemas: ...\n  securitySchemes: ...\n```\n\n \n\n### 2. Design Approaches\n\n    Approach Description Best For     **Design-First** Write spec before code New APIs, contracts   **Code-First** Generate spec from code Existing APIs   **Hybrid** Annotate code, generate spec Evolving APIs    \n\n## Templates and detailed worked examples\n\n \n\nFull template library and detailed worked examples live in ` references/details.md `. Read that file when you need the concrete templates.\n\n \n\n## Best Practices\n\n \n\n### Do's\n\n \n\n- **Use $ref** - Reuse schemas, parameters, responses \n- **Add examples** - Real-world values help consumers \n- **Document errors** - All possible error codes \n- **Version your API** - In URL or header \n- **Use semantic versioning** - For spec changes\n\n \n\n### Don'ts\n\n \n\n- **Don't use generic descriptions** - Be specific \n- **Don't skip security** - Define all schemes \n- **Don't forget nullable** - Be explicit about null \n- **Don't mix styles** - Consistent naming throughout \n- **Don't hardcode URLs** - Use server variables\n\n \n\n## Files\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md ` \n- ` references/code-first-and-tooling.md ` \n- ` references/details.md `\n\n \n\n## Related terms\n\n \n\n- [API (Application Programming Interface)](<https://delaparra-services.nl/knowledge-hub/api-application-programming-interface>) \n- [Endpoint](<https://delaparra-services.nl/knowledge-hub/endpoint>) \n- [GraphQL](<https://delaparra-services.nl/knowledge-hub/graphql>) \n- [JSON (JavaScript Object Notation)](<https://delaparra-services.nl/knowledge-hub/json-javascript-object-notation>) \n- [Polling](<https://delaparra-services.nl/knowledge-hub/polling>) \n- [REST (Representational State Transfer)](<https://delaparra-services.nl/knowledge-hub/rest-representational-state-transfer>) \n- [WebSocket](<https://delaparra-services.nl/knowledge-hub/websocket>) \n- [YAML (YAML Ain't Markup Language)](<https://delaparra-services.nl/knowledge-hub/yaml-yaml-aint-markup-language>)\n\n \n\n[Installing an agent skill in Claude Code, Codex, Cursor and Copilot](<https://delaparra-services.nl/manuals/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/skills/openapi-spec-generation)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#webpage",
                "url": "https://delaparra-services.nl/skills/openapi-spec-generation",
                "name": "OpenAPI Spec Generation | DeLaParra Services",
                "description": "Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "OpenAPI Spec Generation"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#skill",
                "url": "https://delaparra-services.nl/skills/openapi-spec-generation",
                "name": "OpenAPI Spec Generation",
                "description": "Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.",
                "inLanguage": "en",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#dataset",
                "name": "OpenAPI Spec Generation",
                "description": "Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.",
                "url": "https://delaparra-services.nl/skills/openapi-spec-generation",
                "identifier": "https://delaparra-services.nl/skills/openapi-spec-generation#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/skills/openapi-spec-generation#skill"
                },
                "creditText": "wshobson/agents",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "dateModified": "2026-11-28T14:00:12+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#skills",
                    "name": "Skills for AI coding assistants",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "openapi-spec-generation-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/openapi-spec-generation/download",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}