Commit f6bfb80
committed
DMD-1567 Restore use_view on input-mapping-load as load_type=VIEW alias
PR #7570 replaced the boolean use_view field with the load_type enum on
input-mapping-load and made use_view a rejected unexpected field (HTTP 400).
Re-accept use_view additively for backward compatibility, alongside load_type.
- InputMappingConfigTranslator::resolveRequestedLoadType(): single source of
truth reconciling load_type (concrete wins) and the legacy use_view: true
alias (-> VIEW); AUTO/omitted/falsy -> null (preflight resolves preferred).
- InputMappingLoadRequest: re-add use_view (Booleanish + OpenAPI property),
reject a contradictory use_view: true + load_type COPY/CLONE pair (HTTP 400),
and route isViewRequested() through the resolver so the VIEW guards fire for
the legacy trigger too. Processor unchanged.
- Docs: apiary.apib (both occurrences), PROJECT_CONTEXT.md.
- Unit + E2E coverage for the alias, conflict, VIEW-incompat and false cases.1 parent 4d9a56c commit f6bfb80
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5561 | 5561 | | |
5562 | 5562 | | |
5563 | 5563 | | |
| 5564 | + | |
| 5565 | + | |
5564 | 5566 | | |
5565 | 5567 | | |
5566 | 5568 | | |
| |||
5741 | 5743 | | |
5742 | 5744 | | |
5743 | 5745 | | |
| 5746 | + | |
| 5747 | + | |
5744 | 5748 | | |
5745 | 5749 | | |
5746 | 5750 | | |
| |||
0 commit comments