Skip to content

Commit

Permalink
Schema validation: samples - add local
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyaksenov committed Sep 10, 2024
1 parent 8330c47 commit d28c40a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- http_api.lua --
log = require('log').new("http_api")
schema = require('experimental.config.utils.schema')
local log = require('log').new("http_api")
local schema = require('experimental.config.utils.schema')

listen_address_schema = schema.new('listen_address', schema.record({
local listen_address_schema = schema.new('listen_address', schema.record({
scheme = schema.enum({ 'http', 'https' }),
host = schema.scalar({ type = 'string' }),
port = schema.scalar({ type = 'integer' }),
Expand Down

0 comments on commit d28c40a

Please sign in to comment.