Skip to content

feat(client): expose validation result in hooks#63

Merged
romanindev merged 1 commit intofeature/release-0-8-x-integration-safetyfrom
feat/I57-expose-validation-result-in-hooks
Apr 27, 2026
Merged

feat(client): expose validation result in hooks#63
romanindev merged 1 commit intofeature/release-0-8-x-integration-safetyfrom
feat/I57-expose-validation-result-in-hooks

Conversation

@romanindev
Copy link
Copy Markdown
Contributor

Summary

Exposes response validation metadata in lifecycle hooks.

Changes

  • add ResponseValidationResult type
  • store validation result in the execution context
  • expose validation metadata in afterResponse
  • add integration coverage for validation hook metadata

Behavior

When response validation is configured and passes, afterResponse receives:

validation: {
  enabled: true,
  passed: true
}

When validation is not configured, the validation field is omitted.

Closes #57

@romanindev romanindev self-assigned this Apr 27, 2026
@romanindev romanindev linked an issue Apr 27, 2026 that may be closed by this pull request
@romanindev romanindev merged commit de9bbee into feature/release-0-8-x-integration-safety Apr 27, 2026
1 check passed
@romanindev romanindev deleted the feat/I57-expose-validation-result-in-hooks branch April 27, 2026 11:12
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.

[6] feat: expose validation result in hooks

1 participant