feat: add doc generate
This commit is contained in:
parent
8dd4d406f4
commit
96be58737f
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
syntax = "v1"
|
||||||
|
|
||||||
|
import "example_respdoc.api"
|
Loading…
Reference in New Issue