pierrejeambrun commented on issue #27157:
URL: https://github.com/apache/airflow/issues/27157#issuecomment-2575213810
Indeed we do not have any backend information on whether or not this is
meant to be used as a json or a plain string.
For now the easiest solution would be what you are suggesting @obulat, doing
that check in the front-end and show an error message if the json is not valid,
but without preventing the user from saving.
The only thing is to find a good and reliable way of knowing if we have to
validate the json or not. Looking for `{` or `[` is a first idea, another would
be a checkbox or a button that the user needs to click `lint json` or any other
user opt-in action (not sure that's better, just mentioning it). Maybe others
will have a better idea.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]