aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/jsonschema.tl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-18 23:16:41 +0100
committerKim Alvefur <zash@zash.se>2021-03-18 23:16:41 +0100
commitd18097fb6700ede8bdb47388e51e0850d0d828f6 (patch)
tree8f63224754b87b595412c35fd88013bc299ec11f /teal-src/util/jsonschema.tl
parent576b43151c407e03525623a143024bda8926e640 (diff)
downloadprosody-d18097fb6700ede8bdb47388e51e0850d0d828f6.tar.gz
prosody-d18097fb6700ede8bdb47388e51e0850d0d828f6.zip
teal: Use new integer support in Teal 0.13.0
Diffstat (limited to 'teal-src/util/jsonschema.tl')
-rw-r--r--teal-src/util/jsonschema.tl16
1 files changed, 8 insertions, 8 deletions
diff --git a/teal-src/util/jsonschema.tl b/teal-src/util/jsonschema.tl
index 67e37329..3177c501 100644
--- a/teal-src/util/jsonschema.tl
+++ b/teal-src/util/jsonschema.tl
@@ -40,8 +40,8 @@ local record schema_t
exclusiveMinimum : number
-- strings
- maxLength : number
- minLength : number
+ maxLength : integer
+ minLength : integer
pattern : string
format : string
@@ -49,16 +49,16 @@ local record schema_t
prefixItems : { schema_t }
items : schema_t
contains : schema_t
- maxItems : number
- minItems : number
+ maxItems : integer
+ minItems : integer
uniqueItems : boolean
- maxContains : number
- minContains : number
+ maxContains : integer
+ minContains : integer
-- objects
properties : { string : schema_t | type_e }
- maxProperties : number
- minProperties : number
+ maxProperties : integer
+ minProperties : integer
required : { string }
dependentRequired : { string : { string } }
additionalProperties: schema_t