Software /
code /
prosody
Comparison
teal-src/util/jsonschema.tl @ 11444:b3a903032611
util.jsonschema: Fix "uniqueItems" prematurely declaring a match
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 09 Mar 2021 02:38:51 +0100 |
parent | 11443:a526abef61e6 |
child | 11445:c73744fa3bdf |
comparison
equal
deleted
inserted
replaced
11443:a526abef61e6 | 11444:b3a903032611 |
---|---|
273 if values[v] then | 273 if values[v] then |
274 return false | 274 return false |
275 end | 275 end |
276 values[v] = true | 276 values[v] = true |
277 end | 277 end |
278 return true | |
279 end | 278 end |
280 | 279 |
281 local p = 0 | 280 local p = 0 |
282 if schema.prefixItems then | 281 if schema.prefixItems then |
283 for i, s in ipairs(schema.prefixItems) do | 282 for i, s in ipairs(schema.prefixItems) do |