Changeset

13081:adc688a0b31a

util.jsonschema: Fix NYI 'patternProperties' definition It's defined as an object mapping regex to schema, not a single schema
author Kim Alvefur <zash@zash.se>
date Sat, 22 Apr 2023 12:13:38 +0200
parents 13080:031382b207ec
children 13082:acf8a2372764
files teal-src/prosody/util/jsonschema.tl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/teal-src/prosody/util/jsonschema.tl	Wed Apr 19 12:03:34 2023 +0200
+++ b/teal-src/prosody/util/jsonschema.tl	Sat Apr 22 12:13:38 2023 +0200
@@ -55,7 +55,7 @@
 
 	-- objects
 	properties : { string : schema_t }
-	patternProperties: schema_t -- NYI
+	patternProperties: { string : schema_t } -- NYI
 	additionalProperties: schema_t
 	propertyNames : schema_t