Skip to content

Commit e676fec

Browse files
committed
Schema validation 2
1 parent 81da573 commit e676fec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/reference/reference_lua/config/utils_schema.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ Transforming configuration
372372

373373
TODO: filter, merge, map, apply_default ?
374374

375+
Example with ``apply_default()``:
376+
377+
.. literalinclude:: /code_snippets/snippets/config/instances.enabled/config_schema_annotations/http_api.lua
378+
:language: lua
379+
:start-at: local function apply
380+
:end-before: local function stop
381+
:dedent:
382+
375383

376384

377385
.. _config_utils_schema_env-vars:

0 commit comments

Comments
 (0)