<#CM28LL405|> I am not able to enter values in my...
# prefect-cloud
j
#CM28LL405 I am not able to enter values in my cloud ui Has anyone faced this or am I doing some mistake.
c
It’s looking for valid JSON, which should be like [“value”] or {“json”: test}
What happens when you do that
“Ooouio” would be just a string
j
yes it is looking for a valid JSON "something" is also a valid JSON i mean, why should it be in a array..?
c
It’s looking for an object
Can you test with [] and or {} anyways just to confirm ?
j
i mean it will work with [], but I have to change the code to access elements from the array also, it was working like yesterday
as in this "something"
c
What happens if you paste it in and not type it in - does that work ? Also - we reported https://github.com/PrefectHQ/prefect-ui-library/issues/1558 and I can raise this internally
Can you share a snippet of code where this parameter is defined so I can test it ?
j
yes, i did try to paste it, but the min i paste the string the double quotes vanish
c
I can look at it - from what I can tell you’re not coercing any types here so Prefect is assuming it’s json
Realistically this is just a string right ?
j
yes
let me do that
c
This lets me put “test” by type hinting it -
j
one question here regarding
I can look at it - from what I can tell you're not coercing any types here so Prefect is assuming it's json
let it assume as json "test" is a valid JSON so what is the problem in that..? Also, why does the double quotes vanish
c
I think the issue is in the JSON formatter - in order to display and detect what is / isn’t valid json and syntax hifhlighting, it’s needs to escape what you have . I think the expectation and anticipation is that “this” is a string while {“this”} is Json. I can raise this thread up in that ticket I shared earlier if you’d like - I don’t know enough about how it’s written in the UI to know what the expectation is here in totality - e.g is this an unintended bug and we should accept “test” as an input , or is this a design constraint that we are not intentionally, and if so we need to be clear what inputs are accepted
I take your point and will bring it up to the team , the short answer is I don’t know
j
thanks for your time and help yes, can you raise this point with your team and update me on this please thanks once again
1
👍 1
c
I updated the issue with this report thank you for sharing
👍 1
j
thank you for resolving it soon