Comparison

util/jsonschema.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parent 12760:ce1a0f9bf25a
child 12988:8592770be63a
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
1 -- This file is generated from teal-src/util/jsonschema.lua 1 -- This file is generated from teal-src/util/jsonschema.lua
2 2
3 local m_type = function(n) 3 local m_type = function(n)
4 return type(n) == "number" and n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float"; 4 return type(n) == "number" and n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float";
5 end; 5 end;
6 local json = require("util.json") 6 local json = require("prosody.util.json")
7 local null = json.null; 7 local null = json.null;
8 8
9 local pointer = require("util.jsonpointer") 9 local pointer = require("prosody.util.jsonpointer")
10 10
11 local json_type_name = json.json_type_name 11 local json_type_name = json.json_type_name
12 12
13 local schema_t = {} 13 local schema_t = {}
14 14