We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ca141 commit 2bfc0eaCopy full SHA for 2bfc0ea
doc/code_snippets/snippets/config/instances.enabled/application_validate_cfg_record_map/http_api.lua
@@ -1,8 +1,8 @@
1
-- http_api.lua --
2
-log = require('log').new("http_api")
3
-schema = require('experimental.config.utils.schema')
+local log = require('log').new("http_api")
+local schema = require('experimental.config.utils.schema')
4
5
-listen_address_schema = schema.new('listen_address', schema.record({
+local listen_address_schema = schema.new('listen_address', schema.record({
6
scheme = schema.enum({ 'http', 'https' }),
7
host = schema.scalar({ type = 'string' }),
8
port = schema.scalar({ type = 'integer' }),
0 commit comments