{"version":"2.1.179","anchor":"better-error-messages-for-json-schema","canonical_anchor":"better-error-messages-for-json-schema","heading":"Better Error Messages for --json-schema","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.179\/e\/better-error-messages-for-json-schema","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.179","markdown":"### Better Error Messages for `--json-schema`\n\nTwo new validation messages are now shown when `--json-schema` is passed invalid input:\n\n- If the value is not parseable JSON: `Error: --json-schema is not valid JSON: <parse error detail>`\n- If the JSON is valid but not an object (e.g., an array or string): `Error: --json-schema must be a JSON object`\n\nPreviously these failures silently continued with an undefined schema object.\n\n**Evidence**\n\nValidation error strings (search for `\"Error: --json-schema is not valid JSON:\"` and `\"Error: --json-schema must be a JSON object\"`)"}