Problem/Motivation
Codex identified the following issue:
Medium: malformed JSON can pass if the schema permits null or is permissive.
/dev/json_schema_validator/src/JsonSchemaValidator.php:101 decodes JSON, validates the result, and only checks decode failure
after validation fails. Malformed JSON becomes NULL; if a schema accepts null or lacks a root type, invalid input can be accepted.
Check json_last_error() immediately or use JSON_THROW_ON_ERROR before calling Opis.
Issue fork json_schema_validator-3605384
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedComment #5
ptmkenny commented