Skip to content

docs(behavioral): fix non-existent @security.behavioral reference (O8)#30

Merged
rennf93 merged 1 commit into
masterfrom
docs/behavioral-discoverability
Jun 23, 2026
Merged

docs(behavioral): fix non-existent @security.behavioral reference (O8)#30
rennf93 merged 1 commit into
masterfrom
docs/behavioral-discoverability

Conversation

@rennf93

@rennf93 rennf93 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

Design-partner feedback O8 (guard-core half). docs/internals/behavioral.md showed @security.behavioral(rules=[...]), but no behavioral() method exists on SecurityDecorator — a reader copying the snippet hits an AttributeError. The real method is behavior_analysis(rules=[...]) (guard_core/decorators/behavioral.py:48). Corrected.

The rest of O8 — the adoption-path gap (the set_decorator_handler wiring missing from the tutorial + runnable example) — is on the fastapi-guard side.

Scope

One-line docs fix. Markdown lint clean.

The decorator example referenced @security.behavioral(rules=[...]), but no
behavioral() method exists on SecurityDecorator. The real method is
behavior_analysis(rules=[...]) (guard_core/decorators/behavioral.py), so a
reader copying the snippet hit an AttributeError. Corrected to the real name.
@github-actions github-actions Bot added the documentation Docs, README, CHANGELOG, governance files label Jun 23, 2026
@rennf93
rennf93 merged commit 7a470ac into master Jun 23, 2026
2 of 3 checks passed
@rennf93
rennf93 deleted the docs/behavioral-discoverability branch June 23, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs, README, CHANGELOG, governance files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant