diff options
author | Kim Alvefur <zash@zash.se> | 2021-03-18 23:57:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-03-18 23:57:03 +0100 |
commit | c1706af956ae403b229f7f37a2ff575ada0074e6 (patch) | |
tree | 8a6f328deddcec490d84601091dbad7b9ecf1f9b /teal-src/util/json.d.tl | |
parent | d18097fb6700ede8bdb47388e51e0850d0d828f6 (diff) | |
download | prosody-c1706af956ae403b229f7f37a2ff575ada0074e6.tar.gz prosody-c1706af956ae403b229f7f37a2ff575ada0074e6.zip |
util.jsonschema: Rename types for improved readability
Diffstat (limited to 'teal-src/util/json.d.tl')
-rw-r--r-- | teal-src/util/json.d.tl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/teal-src/util/json.d.tl b/teal-src/util/json.d.tl index 86a1495e..a1c25004 100644 --- a/teal-src/util/json.d.tl +++ b/teal-src/util/json.d.tl @@ -1,5 +1,18 @@ local record lib encode : function (any) : string decode : function (string) : any, string + + enum json_type_name + "null" + "boolean" + "object" + "array" + "number" + "string" + "integer" + end + + type null_type = (nil) + null : null_type end return lib |