]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correctly generate the json schema file for auth. 17035/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 25 Mar 2026 12:58:07 +0000 (13:58 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 26 Mar 2026 07:52:02 +0000 (08:52 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
docs/Makefile.am

index da63c04b607d06d2894758ed1e2cc3f20203c3b9..c848dc3d360176c02114127c17b26697c960d899 100644 (file)
@@ -88,10 +88,13 @@ if !HAVE_MANPAGES
 endif
        rm -rf mans
 
-html-docs: common/** manpages/** .venv *.rst
+http-api/swagger/authoritative-api-schema.yaml: .venv generate-jsonschema.py http-api/swagger/authoritative-api-swagger.yaml
+       .venv/bin/python ./generate-jsonschema.py http-api/swagger/authoritative-api-swagger.yaml $@
+
+html-docs: common/** manpages/** .venv *.rst http-api/swagger/authoritative-api-schema.yaml
        .venv/bin/python -msphinx -b html . html-docs
 
-latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst
+latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst http-api/swagger/authoritative-api-schema.yaml
        .venv/bin/python -msphinx -M latexpdf . .
 
 PowerDNS-Authoritative.pdf: latex/PowerDNS-Authoritative.pdf