Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 615b576

Browse files
fix: adds deprecation warning on JSON Schema Draft 3 usage
1 parent 5884b69 commit 615b576

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/validators/json-schema-legacy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class JsonSchemaLegacy extends JsonSchemaValidator {
7676

7777
switch (this.jsonSchemaVersion) {
7878
case 'draftV3':
79+
// eslint-disable-line no-console
80+
console.warn(
81+
'DEPRECATED: JSON Schema Draft V3 is deprecated. Please use a newer version of JSON Schema (Draft V4-7).'
82+
);
7983
return this.validateUsingAmanda(parsedData);
8084
case 'draftV4':
8185
return this.validateUsingTV4(parsedData);

0 commit comments

Comments
 (0)