feat(use-cases): add inline use-case definitions #44
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/inline-use-case"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
RequestIX.use_case_inlineso callers can ship an ad-hoc extraction schema in the request itself, bypassing the registry. The pipeline builds fresh (Request, Response) Pydantic classes per call viaix.use_cases.inline.build_use_case_classes; structural errors map toIX_001_001. Inline wins when bothuse_caseanduse_case_inlineare set. No behaviour change for existing REST callers.TDD: 25 new unit tests covering types, Optional/required, choices → Literal, dup/invalid names, class-naming, and SetupStep precedence. Full unit suite green (266 passing). Ruff clean.
Prepares for feat/ui (PR 2) where the UI can submit custom use cases without touching the backend.