DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Enable view of rendered YAML to include JSON schema

Open SteveL-MSFT opened this issue 2 years ago • 2 comments

Summary of the new feature / enhancement

To help users understand the resulting YAML better (without going to webpage or man page), we could take descriptions of JSON members from the JSON schema and put those as comments into the YAML.

Proposed technical implementation details (optional)

May make sense to have a switch to suppress assuming most people want to see it to explain what properties do but there could be lots of description being emitted.

SteveL-MSFT avatar Jun 29 '23 17:06 SteveL-MSFT

To clarify, this only impacts the YAML view in the terminal - piping, capturing or redirecting the output still gives the normal JSON, correct?

I think this is a really cool feature idea. Especially if it's configurable.

michaeltlombardi avatar Jun 30 '23 00:06 michaeltlombardi

Yes, only for interactive does it make sense to inject the descriptions as comments

SteveL-MSFT avatar Jul 13 '23 20:07 SteveL-MSFT