Diff

teal-src/util/jsonschema.tl @ 11437:87a684df4b65

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.
author Kim Alvefur <zash@zash.se>
date Sat, 06 Mar 2021 23:14:23 +0100
parent 11434:66d4067bdfb2
child 11439:9abcdfdcdb01
line wrap: on
line diff
--- a/teal-src/util/jsonschema.tl	Sun Mar 07 00:57:36 2021 +0100
+++ b/teal-src/util/jsonschema.tl	Sat Mar 06 23:14:23 2021 +0100
@@ -64,6 +64,7 @@
 
 		-- nonstantard, maybe in the future
 		text : boolean
+		x_name_is_value : boolean
 	end
 
 	xml : xml_t