feat(ai): added 2020-12 schema migration to ai strict validation

- Added draft-07-to-2020-12 schema upgrade logic for `$schema`, `definitions`, `$ref`, tuple, and nullable mapping.
- Integrated `upgradeJsonSchemaTo202012` into strict adaptation, validation, strict-mode, sanitizer, and wire/dereference flows.
- Replaced set-based traversal helpers with record maps, `for...in` loops, and epoch/`once` cycle guards.
- Added unreleased changelog entries and tests for schema normalization, `oneOf` to `anyOf`, and tuple validation edge cases.
This commit is contained in:
can1357
2026-05-15 23:46:23 +02:00
parent 09303733d5
commit 0d00f015ec
19 changed files with 1256 additions and 454 deletions
+1 -2
View File
@@ -102,8 +102,7 @@ function collectPayload(
while (lookahead < lines.length && lines[lookahead].length === 0) {
lookahead++;
}
const followedByPayload =
lookahead < lines.length && lines[lookahead].startsWith(HL_EDIT_SEP);
const followedByPayload = lookahead < lines.length && lines[lookahead].startsWith(HL_EDIT_SEP);
const acceptBareBlank = requirePayload && payload.length === 0;
if (followedByPayload || acceptBareBlank) {
for (let j = index; j < lookahead; j++) payload.push("");