DSC Resource declared in yaml
not discovered if schema:
is present and not working if schema:
is absent.
#366
Labels
yaml
not discovered if schema:
is present and not working if schema:
is absent.
#366
Prerequisites
Steps to reproduce
In PR #311 support for definitions of resources in YAML was added. However, this does not appear to be working as expected for the schema portion of the definition.
Using a working json schema for a resource (see below), I run y2j to convert it to yaml (also seen below), but the resource is not discovered when
dsc resource list
is executed. If I remove theschema:
section at the end of the yaml file (as this example suggests is not necessary) the resource is discovered but does not execute as the schema is missing from the resource. As I am using the yaml language server validation, any modification to theschema
section to support a YAML tag does not appear valid.working Json resource definition
non discoverable yaml resource definition
discoverable but non-working yaml resource definition
Expected behavior
when executing the resource (that may be discovered)
Actual behavior
when executing the resource (that may be discovered)
Error details
No response
Environment data
Version
dsc 3.0.0-alpha.5
Visuals
No response
The text was updated successfully, but these errors were encountered: