apairon 21472bdc72
continuous-integration/drone/push Build is passing
Schema: ngram.sizes auf 2–10 begrenzen, combinedCache ergänzen
Die Gesamtabnahme fand zwei Lücken im Config-Vertrag:

- ngram.sizes erlaubte minimum 1 und hatte kein maximum; der Server akzeptiert
  nur 2–10 (collection_setup.go) — das Schema ließ also Configs durch, die beim
  Projektload scheitern.
- combinedCache fehlte komplett, obwohl Server (models.CombinedCacheConfig) und
  Doku den Block als Projekt-YAML führen; additionalProperties:false lehnte
  gültige, dokumentierte Configs ab.

Ergänzt in collection.schema.json und index.d.ts (CombinedCacheConfig mit
enabled/ttl/maxEntries). Die Demo-Collection ngram-stopwords.yml enthält jetzt
eine Combined-Config mit combinedCache, sodass validate:schemas den Block
abdeckt. Gegenprobe per AJV: sizes [1] und [11] werden abgelehnt, [2,3] und
combinedCache akzeptiert.
2026-10-19 22:34:56 +00:00
2022-01-24 16:19:52 +01:00
2022-02-01 18:59:17 +01:00
2022-01-13 18:38:02 +01:00
S
Description
WMBasic API Javascript Hook Types
556 KiB
0 Stars 5 Watchers 0 Forks
Languages
HTML 75.9%
JavaScript 24.1%