Update README.md with latest json schema (automated)

This commit is contained in:
Ulf Wiger
2025-10-08 15:39:48 +02:00
parent 34f3c93aaa
commit 968f9d92f2
8 changed files with 97 additions and 5 deletions
+13 -1
View File
@@ -2,7 +2,8 @@
-vsn("0.6.1").
-export([ schema/0
, to_json/0 ]).
, to_json/0
, export/1 ]).
-import(gmconfig_schema_helpers,
[ str/1
@@ -22,6 +23,17 @@
to_json() ->
json:encode(schema()).
export(ToFile) ->
case file:open(ToFile, [write]) of
{ok, Fd} ->
try ok = io:put_chars(Fd, json:format(schema(), #{indent => 4}))
after
file:close(Fd)
end;
{error, _} = Error ->
Error
end.
schema() ->
obj(schema_init(),
#{