puppetlabs / pdk

The shortest path to better modules: Puppet Development Kit; Download:
https://puppet.com/download-puppet-development-kit
Apache License 2.0
225 stars 105 forks source link

task input_method 'powershell' fails validation #369

Closed jessereynolds closed 6 years ago

jessereynolds commented 6 years ago

If you have a task with input_method of 'powershell' pdk fails validation, eg:

{
  "description": "Does something",
  "input_method": "powershell",
  "parameters": ...snip...

pdk validate

error: task-metadata-lint: tasks/foo.json: The property '#/input_method' value "powershell" did not match one of the following values: stdin, environment

bolt docs describe the 'powershell' input_method: https://puppet.com/docs/bolt/0.x/writing_tasks.html#task-metadata-reference

jessereynolds commented 6 years ago

I've created a pull request against puppet-forge-api to fix the task.json task json schema file served by the forge.

DavidS commented 6 years ago

This should have been shipped with pdk 1.3.

Feel free to open another report, if there is still problems with this (or anything else). Thanks for your time & work!