style(proto): ignore tmp-swagger-gen/**/*.swagger.json

This commit is contained in:
Prad Nukala
2025-10-21 12:04:29 -04:00
parent e3b492f3b9
commit 53a34171e8
45 changed files with 300 additions and 181 deletions
+12 -3
View File
@@ -55,9 +55,18 @@ test:
###############################################################################
swagger-gen:
@gum log --level info "Generating OpenAPI documentation..."
@buf generate --template buf.gen.openapi.yaml
@gum log --level info "✅ OpenAPI documentation generated in docs/static/openapi/"
@gum log --level info "✅ Merged API specification: docs/static/openapi/sonr.swagger.yaml"
@$(protoImage) buf generate --template proto/buf.gen.openapi.yaml
@gum log --level info "Combining swagger files into unified specification..."
@mkdir -p $(GIT_ROOT)/client/docs/swagger-ui
@npx swagger-combine $(GIT_ROOT)/client/docs/config.json \
-o $(GIT_ROOT)/client/docs/swagger-ui/swagger.yaml \
-f yaml \
--continueOnConflictingPaths true \
--includeDefinitions true
@gum log --level info "Cleaning up temporary files..."
@rm -rf $(GIT_ROOT)/tmp-swagger-gen
@gum log --level info "✅ OpenAPI documentation generated successfully"
@gum log --level info "✅ Unified API specification: client/docs/swagger-ui/swagger.yaml"
push:
@npx buf push
+4 -3
View File
@@ -1,15 +1,16 @@
version: v1
plugins:
# Generate OpenAPI v2 (Swagger) documentation
# Follows Cosmos SDK standard approach: generate to tmp directory, then combine
- name: openapiv2
out: ../docs/static/openapi
out: ../tmp-swagger-gen
opt:
- logtostderr=true
- fqn_for_swagger_name=true
- simple_operation_ids=true
- openapi_naming_strategy=simple
- json_names_for_fields=true
- allow_merge=false
- output_format=yaml
- output_format=json
# Generate methods without HTTP bindings
- generate_unbound_methods=true
# Include service tags