Is there a standard for argument validation in an action plugin?

Incrediblestorm
Sat, 04 Jan 2025 18:57:36 +0000
Get Help

This may be just something that is simple that I’m overlooking.

I am developing a set of action plugins for working with our salesforce instance. I’m relatively new to module/plugin development.

There is a well defined standard for doing argument validation in a module with a defined argument spec. It even handles callbacks to validate via checking an environment variable.

I’ve seen some examples, and looked through several bits of the core code, and it seems like the argument validation is handled differently for each.

I want to make the code so there is a possibility that I might be able to contribute it back to the community at some point. I am wrestling with the idea of handling it with some code in module_utils so it works for the entire collection, but before I go down that road, I want to make sure that I’m not missing something obvious.

9 posts - 4 participants