-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example string of type integer gets pasted as int #371
Example string of type integer gets pasted as int #371
Comments
@Morriz can you provide a sample of yaml and schema, where you get that behaviour? |
I use draft 9 jsonschema, and the part that I use is:
|
You can reproduce with this schema:
when you autocomplete env it will be correct but when you autocomplete enum it will add the integer 1 instead of the string 1
when we want
|
@JPinkney that is another version of this bug but probably caused by the same underlying mechanism? |
Sorry for giving a yaml example, but that is what we use as source and convert to json. (Would any dev really prefer json over yaml?) |
On that note, is it possible to give a yaml file to this extension? |
Yeah it's the same underlying mechanism. For example, I can also reproduce using:
Yeah it works with both json schemas and yaml schemas as of 0.11.0. This is how I was testing the above example:
|
Awesome! |
@JPinkney I done some investigation on this, and found that YAML doesn't have WDYT? |
Yeah, that sounds good to me |
* redhat-developer#371 Support relative path in inline schema comment Signed-off-by: Yevhen Vydolob <[email protected]> * Fix test on windows
When I use autocompletion I get a nice suggestion to use
'1'
(so obviously this entry in examples is a string), but after selecting it it ends up as1
, giving me an error as the validation spec expects a string.Maybe this is a vscode problem, but I am reporting here first.
The text was updated successfully, but these errors were encountered: