feat: update swagger prettier

main
sudo pacman -Syu 2023-12-01 17:25:52 +07:00
parent 2dbb3b2671
commit e541f02132
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ go install github.com/mikefarah/yq/v4@latest
yq -o=json <span class="pl-s"><span class="pl-pds">'</span>.<span class="pl-pds">'</span></span> ./docs/swagger.yaml <span class="pl-k">&gt;</span> ./docs/swagger.json yq -o=json <span class="pl-s"><span class="pl-pds">'</span>.<span class="pl-pds">'</span></span> ./docs/swagger.yaml <span class="pl-k">&gt;</span> ./docs/swagger.json
<span class="pl-c"><span class="pl-c">#</span> Format</span> <span class="pl-c"><span class="pl-c">#</span> Format</span>
bunx prettier --write ./docs/swagger.yaml ./docs/swagger.json bunx prettier@latest --write ./docs/swagger.yaml ./docs/swagger.json
<span class="pl-c"><span class="pl-c">#</span> Render locally</span> <span class="pl-c"><span class="pl-c">#</span> Render locally</span>
bunx @redocly/cli preview-docs ./docs/swagger.json</pre> bunx @redocly/cli preview-docs ./docs/swagger.json</pre>

View File

@ -21,7 +21,7 @@ go install github.com/mikefarah/yq/v4@latest
yq -o=json '.' ./docs/swagger.yaml > ./docs/swagger.json yq -o=json '.' ./docs/swagger.yaml > ./docs/swagger.json
# Format # Format
bunx prettier --write ./docs/swagger.yaml ./docs/swagger.json bunx prettier@latest --write ./docs/swagger.yaml ./docs/swagger.json
# Render locally # Render locally
bunx @redocly/cli preview-docs ./docs/swagger.json bunx @redocly/cli preview-docs ./docs/swagger.json