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 Aug 30, 2024
1 parent 0331577 commit e5435c9
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 e5435c9

Please sign in to comment.