|
|
@@ -185,7 +185,8 @@ fields(meta) ->
|
|
|
schema_with_example(Type, Example) ->
|
|
|
hoconsc:mk(Type, #{examples => #{<<"example">> => Example}}).
|
|
|
|
|
|
--spec schema_with_examples(hocon_schema:type(), map()) -> hocon_schema:field_schema_map().
|
|
|
+-spec schema_with_examples(hocon_schema:type(), map() | list(tuple())) ->
|
|
|
+ hocon_schema:field_schema_map().
|
|
|
schema_with_examples(Type, Examples) ->
|
|
|
hoconsc:mk(Type, #{examples => #{<<"examples">> => Examples}}).
|
|
|
|