Converting JSON to values in code fixes #4612
Labels
design:needed
A design request has been raised that needs a proposal
feature
New feature or request
ide
Issues for VS, VSCode, Monaco, etc.
triaged:core
Milestone
Clear and concise description of the problem
People may have JSON on hand when trying to create examples for their models, but examples are expected to be values.
It would be nice if the existing "convert to an object value" code fix that handles when you drop a model into a spot designated for a value [Playground]:
would turn it into a value
instead of to an invalid value [Playground]:
This would ease migrations to TypeSpec while removing a case where a codefix leaves invalid code after being applied.
Checklist
The text was updated successfully, but these errors were encountered: