跳到主要内容
知仓学习社ZHICANG

openapi-generator

Generate OpenAPI specifications from code or legacy APIs with schema inference and documentation

不碰外部(只输出文字)无严重或高危命中a5c-ai/babysitter

它会碰到什么

扫了多少2 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

OpenAPI Generator Skill

Generates OpenAPI specifications from code annotations, legacy APIs, or runtime analysis, with schema inference and documentation generation.

Purpose

Enable API documentation for:

  • Spec generation from code
  • Schema inference
  • Example generation
  • Validation rule extraction
  • Documentation generation

Capabilities

1. Spec Generation from Code Annotations

  • Parse JSDoc/Swagger annotations
  • Extract from decorators
  • Process code comments
  • Support multiple languages

2. Schema Inference

  • Infer from TypeScript types
  • Extract from runtime samples
  • Build from database models
  • Derive from existing payloads

3. Example Generation

  • Generate realistic examples
  • Create edge case samples
  • Produce validation examples
  • Build test fixtures

4. Validation Rule Extraction

  • Extract validation constraints
  • Document required fields
  • Map format rules
  • Export enum values

5. Versioning Support

  • Track API versions
  • Generate diff between versions
  • Document breaking changes
  • Support multiple versions

6. Documentation Generation

  • Generate Swagger UI
  • Create ReDoc pages
  • Export to Postman
  • Build developer portals

Tool Integrations

| Tool | Language | Integration Method |

|------|----------|-------------------|

| Swagger Codegen | Multi | CLI |

| OpenAPI Generator | Multi | CLI |

| springdoc | Java/Spring | Library |

| NSwag | .NET | CLI |

| tsoa | TypeScript | CLI |

| FastAPI | Python | Auto |

Output Schema

{
  "generationId": "string",
  "timestamp": "ISO8601",
  "specification": {
    "openapi": "string",
    "info": {},
    "paths": {},
    "components": {}
  },
  "artifacts": {
    "specFile": "string",
    "docsUrl": "string",
    "postmanCollection": "string"
  },
  "coverage": {
    "endpoints": "number",
    "documented": "number",
    "schemasGenerated": "number"
  }
}

Integration with Migration Processes

  • api-modernization: Spec generation
  • documentation-migration: API docs

Related Skills

  • api-inventory-scanner: Endpoint discovery
  • api-compatibility-analyzer: Version comparison

Related Agents

  • api-modernization-architect: API design
  • documentation-migration-agent: Doc generation

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,796
本站分层T1
该仓技能数2115
原文件路径library/specializations/code-migration-modernization/skills/openapi-generator/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 2115 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 openapi-generator 的技能。它们内容并不相同,别混用:

  • a5c-ai/babysitter — Specialized skill for generating and validating OpenAPI 3.0/3.1 specifications. Supports c