# JSON Typed into with schema validation

**URL:** <https://discourse.nodered.org/t/json-typed-into-with-schema-validation/84499>\
**Category:** Developing Nodes\
**Created:** [12 January 2024 03:15 UTC](https://discourse.nodered.org/t/json-typed-into-with-schema-validation/84499 "2024-01-12T03:15:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [12 January 2024 09:21 UTC](https://discourse.nodered.org/t/json-typed-into-with-schema-validation/84499/2 "2024-01-12T09:21:38Z")

</div>

Good question 🤔

If the JSON is in unexpanded input form, a tooltip may appear below with an error message. However, if the input is expanded (editor), I believe there is nothing (apart JSON correction with Monaco).

Validation is done on input, switching to an editor does not trigger validation until the editor is closed.

I don't think we can extend validation to the editor 😕

> [@Thomassorensen](#):
>
> return false

returns String to show an error message

Note that the current version of NR may prevent you from seeing the tooltip  
See the [FR](https://discourse.nodered.org/t/proposal-add-validation-tooltip-message-to-all-fields/83229/4) and actual work [here](https://github.com/GogoVega/node-red/tree/tooltip-input-validation)

---

_[View the full topic](https://discourse.nodered.org/t/json-typed-into-with-schema-validation/84499)._
