-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More info on the use of 'params' in resource_type declaration #273
Comments
Related issue: spring-projects/sts4#382 |
@kdvolder That's pretty cool that your editor is going that far to validate! tl;dr - I think if your editor knows about the My understanding of Given how brief the current doc is, I could imagine expanding it a bit to make the connection with the |
Okay thanks for confirming my guess about the 'params' being handled just like the params on a get step.
It does but only for a supported set of 'built-in' resource types. But since |
Totally agree, and let's leave this issue open to help fill that gap for future doc readers |
I am looking at this: https://concourse-ci.org/resource-types.html#resource-type-params
It says there that this is just an 'arbitrary' object. So this suggest that the concourse editor (https://marketplace.visualstudio.com/items?itemName=Pivotal.vscode-concourse) which I am maintaining should not attempt the validate the contents of the 'params'?
However, I suspect that these params actually are a lot less arbitrary than the doc suggests. Are the parameters in fact used in the same way as would be the parameters in a
get
step? If so then I guess it makes sense for our editor to validate them in the same way? (i.e. for resource type like 'registry_image' we know what to expect there and so we can actually validate it.Anyhow. The docs may not need to actually be modified (consider doing that at your own discretion), but I would like to be sure I am understanding things correctly before adding validation logic to our editor. So I would appreciate at least an answer here.
The text was updated successfully, but these errors were encountered: