Files
junhong_cmp_fiber/.gitignore
huang 6fc90abeb6 实现服务启动时自动生成OpenAPI文档
主要变更:
1. 新增 cmd/api/docs.go 实现文档自动生成逻辑
2. 修改 cmd/api/main.go 在服务启动时调用文档生成
3. 重构 cmd/gendocs/main.go 提取生成函数
4. 更新 .gitignore 忽略自动生成的 openapi.yaml
5. 新增 Makefile 支持 make docs 命令
6. OpenSpec 框架更新和变更归档

功能特性:
- 服务启动时自动生成 OpenAPI 文档到项目根目录
- 保留独立的文档生成工具 (make docs)
- 生成失败时记录错误但不影响服务启动
- 所有代码已通过 openspec validate --strict 验证

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 12:25:50 +08:00

70 lines
729 B
Plaintext

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/
*.test
*.out
# Go workspace file
go.work
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool
*.out
coverage/
*.coverprofile
# Dependency directories
vendor/
# Go build cache
.cache/
# Environment variables
.env
.env.*
!.env.example
# Log files
logs/
*.log
# IDEs and editors
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
# Temporary files
*.tmp
*.temp
*.bak
# Redis dump
dump.rdb
# Database files
*.db
*.sqlite
*.sqlite3
# Configuration overrides (keep templates)
config/local.yaml
configs/local.yaml
# Build output
dist/
build/
# Auto-generated OpenAPI documentation
/openapi.yaml
.claude/settings.local.json