Skip to content

Validate query parameters#22

Merged
daveomri merged 7 commits intomainfrom
fix/power-automate-validate-number-parameters
Jan 13, 2026
Merged

Validate query parameters#22
daveomri merged 7 commits intomainfrom
fix/power-automate-validate-number-parameters

Conversation

@daveomri
Copy link
Copy Markdown
Collaborator

@daveomri daveomri commented Jan 6, 2026

Implementing the missing validation of some of the input query parameters that the Power Automate does not check.

For now, the objects/enums are checked before storing/running the flow. But due to limitations of Swagger 2.0 and Power Automate, there is no way to check the format of number fields or string fields (like URL).

I've created a validation logic that should be easy/modular to use, and add new logic for validation if necessary in the future.

The only file changed is the scripts.csx.

@daveomri daveomri self-assigned this Jan 6, 2026
@daveomri daveomri marked this pull request as ready for review January 8, 2026 10:55
Comment thread scripts.csx Outdated
return new Dictionary<string, Dictionary<string, ParameterValidator>> {
[OP_RUN_ACTOR_ID] = new Dictionary<string, ParameterValidator> {
["waitForFinish"] = ValidateWaitForFinish,
["timeout"] = ValidatePositiveInteger
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timeout can be 0 as well.

@daveomri daveomri requested a review from jirimoravcik January 8, 2026 16:57
@daveomri daveomri merged commit e07c12c into main Jan 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants