1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-07 21:37:04 +09:00

GO-5589: Format pretty openapi.json

This commit is contained in:
Jannis Metrikat 2025-05-14 00:25:58 +02:00
parent 0983e91cbd
commit 433537998f
No known key found for this signature in database
GPG key ID: B223CAC5AAF85615
2 changed files with 5668 additions and 10 deletions

File diff suppressed because one or more lines are too long

View file

@ -13,7 +13,8 @@ lint:
openapi:
@echo 'Generating openapi docs...'
@swag init --v3.1 -q -d core/api -g service.go -o $(OPENAPI_DOCS_DIR)
@mv $(OPENAPI_DOCS_DIR)/swagger.json $(OPENAPI_DOCS_DIR)/openapi.json
@mv $(OPENAPI_DOCS_DIR)/swagger.yaml $(OPENAPI_DOCS_DIR)/openapi.yaml
@mv $(OPENAPI_DOCS_DIR)/swagger.json $(OPENAPI_DOCS_DIR)/openapi.json
@jq . "$(OPENAPI_DOCS_DIR)/openapi.json" > "$(OPENAPI_DOCS_DIR)/pretty.json" && mv "$(OPENAPI_DOCS_DIR)/pretty.json" "$(OPENAPI_DOCS_DIR)/openapi.json"
@echo 'Formatting openapi docs...'
@swag fmt -d core/api