From 96be58737fcd9da50a8454f557c6de18fcf3e4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Tue, 30 Sep 2025 17:44:18 +0800 Subject: [PATCH] feat: add doc generate --- Makefile | 2 +- example/multiple.api | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 example/multiple.api diff --git a/Makefile b/Makefile index 4d02d12..6b3195a 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ install: ## Install the binary to $GOPATH/bin run: build ## Build and run with example API file @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" fmt: ## Format code diff --git a/example/multiple.api b/example/multiple.api new file mode 100644 index 0000000..8460436 --- /dev/null +++ b/example/multiple.api @@ -0,0 +1,3 @@ +syntax = "v1" + +import "example_respdoc.api" \ No newline at end of file