knowject-api-to-types

Category: Development & Coding | Uploader: lynxlangyalynxlangya | Downloads: 0 | Version: v1.0(Latest)

Use when the user wants to generate TypeScript types from an OpenAPI document and wire them into the typed client produced by knowject-read-api. Triggers on phrases like "/knowject types", "把 openapi 转成 types", "给 read-api client 补类型", "生成 typed client 的类型", "rewrite the unknown placeholders", "wire types into the generated client". Day-1 input is OpenAPI 3 only — non-OpenAPI inputs (Express routes, Mongoose, Zod, Pydantic, Spring DTOs, Nest decorators, markdown specs, etc.) are refused with framework-specific recommendations for exposing OpenAPI.

Changelog: Source: GitHub https://github.com/lynxlangya/knowject

Directory Structure

Current level: tree/main/skills/knowject-api-to-types/

  • 📁 agents/
    • 📄 openai.yaml 939 B
  • 📁 references/
    • 📁 examples/
      • 📄 client-input.ts 493 B
      • 📄 client-rewritten-expected.ts 557 B
      • 📄 openapi-input.yaml 1.9 KB
      • 📄 types-extraction-expected.json 1.0 KB
      • 📄 types-output-expected.ts 469 B
    • 📄 non-openapi-refusal.md 2.7 KB
    • 📄 openapi-to-typescript-mapping.md 3.0 KB
    • 📄 typed-client-rewrite.md 3.4 KB
  • 📁 scripts/
    • 📄 extract-types-from-openapi.py 7.4 KB
    • 📄 rewrite-typed-client.py 4.5 KB
  • 📄 SKILL.md 8.2 KB

SKILL.md

Login to download/like/favorite ❤ 98 | ★ 0
Comments 0

Please login before commenting.

Loading comments...