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:
parent
0983e91cbd
commit
433537998f
2 changed files with 5668 additions and 10 deletions
File diff suppressed because one or more lines are too long
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue