Skip to content

Skip operation effect validation for endpoints using Skip API call#457

Merged
bdrhn9 merged 7 commits intomainfrom
bdrhn9/issue456
Apr 29, 2025
Merged

Skip operation effect validation for endpoints using Skip API call#457
bdrhn9 merged 7 commits intomainfrom
bdrhn9/issue456

Conversation

@bdrhn9
Copy link
Contributor

@bdrhn9 bdrhn9 commented Apr 27, 2025

Closes #456

For visibility: @metobom

@bdrhn9 bdrhn9 requested a review from Siegrift April 27, 2025 17:40
Copy link
Collaborator

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

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

👍 LGTM

if (templates[templateId] === undefined) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: `Template ID "${templateId}" is not defined in the config.templates object`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:

Suggested change
message: `Template ID "${templateId}" is not defined in the config.templates object`,
message: `Template ID "${templateId}" is not defined`,

if we ever refactor the config it can go stale.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we ever refactor the config it can go stale.

You're right but current version clearly points where the issue arises. I'd recommend to keep it.

@bdrhn9 bdrhn9 merged commit 9772328 into main Apr 29, 2025
5 checks passed
@bdrhn9 bdrhn9 deleted the bdrhn9/issue456 branch April 29, 2025 12:11
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.

Skip operation effect validation for endpoints using Skip API Call feature

2 participants