Add openapi-generate-html

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-23 16:29:38 +01:00
parent 7ef0759b2e
commit d1bc669c26
4 changed files with 35 additions and 0 deletions

12
openapi/build-docs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
rm -fr out
mkdir out
openapi-generate-html \
--input petstore.yaml \
--output out/docs.html \
--ui swagger \
"$@"