Skip to content

docs(extensions): document OperationValidatorExtension.precheck hook#1732

Closed
r266-tech wants to merge 2 commits into
vectorize-io:mainfrom
r266-tech:docs-extensions-precheck-hook-1548
Closed

docs(extensions): document OperationValidatorExtension.precheck hook#1732
r266-tech wants to merge 2 commits into
vectorize-io:mainfrom
r266-tech:docs-extensions-precheck-hook-1548

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

#1548 added an optional precheck() hook and exported PrecheckContext on OperationValidatorExtension, but developer/extensions.md only documents the post-body validate_* hooks and DeferOperation. Users can't discover the new pre-body-parse gate from the docs.

This adds a Pre-body-parse precheck subsection covering when to use the hook (gate a request before the body is read — exhausted balance, revoked key, rate-limited tenant), the PrecheckContext fields (operation / bank_id / request_context), and an opt-in example. Wording is grounded in the method/dataclass docstrings from #1548.

Mirrored into the skills/hindsight-docs/references copy to keep the two in sync. Pure docs, no code changes.

@nicoloboschi

Copy link
Copy Markdown
Collaborator

no need thanks

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.

2 participants