Skip to content

Commit

Permalink
feat: generate example.conf from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool committed May 30, 2022
1 parent d4ee361 commit 2cc125a
Show file tree
Hide file tree
Showing 4 changed files with 775 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/hocon_schema.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@

-export([
find_structs/1,
find_structs/2,
override/2,
namespace/1,
resolve_struct_name/2,
root_names/1,
field_schema/2,
assert_fields/2
assert_fields/2,
path/1
]).

-export([
Expand Down Expand Up @@ -100,6 +102,7 @@
#{
type := type(),
default => term(),
examples => term(),
mapping => undefined | string(),
converter => undefined | translationfunc(),
validator => undefined | validationfun(),
Expand Down
Loading

0 comments on commit 2cc125a

Please sign in to comment.