Skip to content

Commit

Permalink
Merge pull request #199 from emqx/schema-example
Browse files Browse the repository at this point in the history
feat: generate example.conf from schema
  • Loading branch information
zhongwencool authored May 30, 2022
2 parents d4ee361 + 2cc125a commit 229abbb
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 229abbb

Please sign in to comment.