# HG changeset patch # User Kim Alvefur # Date 1688143518 -7200 # Node ID 9364f0b5ecae9838c36195d40a57e17e991e7df6 # Parent e2c3582ab9fa966ed048872573370e6398c9b260 util.jsonpointer: Change function prototype to allow anything But anything that's not a table can't be resolved into, which could happen in the middle, so eh. diff -r e2c3582ab9fa -r 9364f0b5ecae teal-src/prosody/util/jsonpointer.tl --- a/teal-src/prosody/util/jsonpointer.tl Fri Jun 30 15:02:26 2023 +0200 +++ b/teal-src/prosody/util/jsonpointer.tl Fri Jun 30 18:45:18 2023 +0200 @@ -9,7 +9,7 @@ return unescaped end -local function resolve_json_pointer(ref : table, path : string) : any, ptr_error +local function resolve_json_pointer(ref : any, path : string) : any, ptr_error local ptr_len = #path+1 for part, pos in path:gmatch("/([^/]*)()") do local token = unescape_token(part)