Commit Graph

2 Commits

Author SHA1 Message Date
0daed3c8d9 fix(opad): use model_json_schema() for Pydantic v2
Replace deprecated .schema() with .model_json_schema()

Refs: CM-WALL-OPAD-2026-05
2026-05-12 09:15:09 +02:00
7b93160478 feat(opad): add Pydantic models and validation tests
Pydantic v1 models equivalent to JSON Schema:
- OPADProfile: Complete 3-prong configuration
- Enums: OPADMode, PolicyAction, LogLevel, Protocol
- Observation, Injection, Policy configs
- OPADEvent and OPADInjectResult for logging

Tests verify JSON Schema and Pydantic equivalence.
All 18 tests passing.

Refs: CM-WALL-OPAD-2026-05

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-12 09:05:22 +02:00