This patch series aims to automate the process of creating the json schema for DNS challenges provided by acme.sh.
This is done via a simple bash script, which parses out the required information using the `dns_<provider>_info` variable in each of the providers' dnsapi scripts. This variable includes the Options, their descriptions and sometimes the default/optional values. This is then used to generate the json schema, which is then normalized. If the contents of the variable are malformed or it is empty, an empty entry will be generated. The only attribute this script cannot parse out is the type the variable has (e.g. `integer`/`string`) so it assigns string to all fields. This may be fine, as I only saw around 10 (of ~300) occurances where `integer` would be a better fit. The second patch uses the script to generate the schema. Nicolas Frey (2): dns: schema: add generate schema script dns: generate schema src/Makefile | 4 + src/dns-challenge-schema.json | 2201 +++++++++++++++++++++++++++++---- src/generate_schema.sh | 135 ++ 3 files changed, 2083 insertions(+), 257 deletions(-) create mode 100755 src/generate_schema.sh -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
