feat: add doc generate

This commit is contained in:
王性驊 2025-09-30 17:44:18 +08:00
parent 8dd4d406f4
commit 96be58737f
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,7 @@ install: ## Install the binary to $GOPATH/bin
run: build ## Build and run with example API file run: build ## Build and run with example API file
@echo "Running $(BINARY_NAME)..." @echo "Running $(BINARY_NAME)..."
@$(BUILD_DIR)/$(BINARY_NAME) -a example/example.api -d example/test_output @$(BUILD_DIR)/$(BINARY_NAME) -a example/multiple.api -d example/test_output -f example_cn_openapi3 -s openapi3.0
@echo "✅ Generated: example/test_output/example.json" @echo "✅ Generated: example/test_output/example.json"
fmt: ## Format code fmt: ## Format code

3
example/multiple.api Normal file
View File

@ -0,0 +1,3 @@
syntax = "v1"
import "example_respdoc.api"