Software /
code /
prosody
Comparison
util/jsonschema.lua @ 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 |
---|---|
192 if values[v] then | 192 if values[v] then |
193 return false | 193 return false |
194 end | 194 end |
195 values[v] = true | 195 values[v] = true |
196 end | 196 end |
197 return true | |
198 end | 197 end |
199 | 198 |
200 local p = 0 | 199 local p = 0 |
201 if schema.prefixItems then | 200 if schema.prefixItems then |
202 for i, s in ipairs(schema.prefixItems) do | 201 for i, s in ipairs(schema.prefixItems) do |