aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/jsonschema.tl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-06 23:14:23 +0100
committerKim Alvefur <zash@zash.se>2021-03-06 23:14:23 +0100
commitd20ea9b87e6e4071aca1a6895041d9e82ebb8691 (patch)
tree18d117f1e6a0ec3f63ed407ec22b6d4aabb16198 /teal-src/util/jsonschema.tl
parentd8e9e044f2be19a01af4c3c9a0ac99b8d00fdcba (diff)
downloadprosody-d20ea9b87e6e4071aca1a6895041d9e82ebb8691.tar.gz
prosody-d20ea9b87e6e4071aca1a6895041d9e82ebb8691.zip
util.datamapper: Invent extension for using tag name as value
Useful for certain enum-like uses where the element name is the relevant information, e.g. chat states.
Diffstat (limited to 'teal-src/util/jsonschema.tl')
-rw-r--r--teal-src/util/jsonschema.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/teal-src/util/jsonschema.tl b/teal-src/util/jsonschema.tl
index 1c11f63b..96832a7f 100644
--- a/teal-src/util/jsonschema.tl
+++ b/teal-src/util/jsonschema.tl
@@ -64,6 +64,7 @@ local record schema_t
-- nonstantard, maybe in the future
text : boolean
+ x_name_is_value : boolean
end
xml : xml_t