Open mikkelhegn opened 3 years ago
Ah, thanks for filing. It would definitely be good to bubble up errors of this nature. It could perhaps happen during linting or maybe at runtime (I'll have to refresh my memory as to if one of path
/jsonPath
/regex
is mandatory... if so, we could error when none is supplied -- as I believe would be the case if the key is incorrect/unknown.) Maybe a linter check would be the best...
I ran into this same problem, took me a few minutes to figure out what was going on.
I think we need to refresh the schema.json file for the az mixin, and then validate against it during lint. Then when you use VSCode you will get the proper autocomplete and porter build/lint will fail when you typo the outputs.
In my example I was not specifying the jsonPath using correct case (I used
jsonpath
as opposed tojsonPath
):This resulted in the mixin to run without an error, but not picking up the output.
I think the desired outcome should be an error on parsing porter.yaml while running the mixin. Thoughts?