Found while reviewing #308 (JSON Schema 2019-09 support).
Problem
extractVocabularies in src/services/jsonSchemaService.ts stores $vocabulary values verbatim:
for (const [uri, required] of Object.entries(metaschema.$vocabulary)) {
vocabs.set(uri, required);
}
A malformed meta-schema with non-boolean values would flow into isFormatAssertionEnabled (which does return format201909), potentially returning a non-boolean.
Suggested direction
Normalize values with === true (or validate/skip non-boolean entries).
Severity
Low — robustness/edge case.
Found while reviewing #308 (JSON Schema 2019-09 support).
Problem
extractVocabulariesinsrc/services/jsonSchemaService.tsstores$vocabularyvalues verbatim:A malformed meta-schema with non-boolean values would flow into
isFormatAssertionEnabled(which doesreturn format201909), potentially returning a non-boolean.Suggested direction
Normalize values with
=== true(or validate/skip non-boolean entries).Severity
Low — robustness/edge case.