You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to use your (super-cool) editor to edit some JSON on a website. When I submit the JSON, it is validated against a schema in the backend and then it's either allowed (200) or denied (422). When it's denied, I would like to parse the error and show it in the editor.
e.g.
{
name: "Adam"
age: "24"
}
And if age: int
I would like "24" to be highlighted, and the error from the backend parse "needs to be an int" straight from the backend.
Additional context
I feel there may already be a way to do this, I am a full stack dev trying to break into the FE world. Have good experience with the backend, if there is a way to already do this please guide me. I am trying to use onValidate and I see it gets markers from the errors. So all I really need to do is insert custom markers?
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I am trying to use your (super-cool) editor to edit some JSON on a website. When I submit the JSON, it is validated against a schema in the backend and then it's either allowed (200) or denied (422). When it's denied, I would like to parse the error and show it in the editor.
e.g.
And if
age: int
I would like
"24"
to be highlighted, and the error from the backend parse"needs to be an int"
straight from the backend.Additional context
I feel there may already be a way to do this, I am a full stack dev trying to break into the FE world. Have good experience with the backend, if there is a way to already do this please guide me. I am trying to use
onValidate
and I see it gets markers from the errors. So all I really need to do is insert custom markers?The text was updated successfully, but these errors were encountered: