Files
mtusi2026lab7/backend/generator-overlay.yaml

16 lines
687 B
YAML

overlay: 1.0.0
info:
title: Go DTO generation view; normative contract remains unchanged
version: 1.0.0
actions:
# oapi-codegen 2.8 emits duplicate Body fields for two binary MIME types.
# The adapter reads the original bounded request stream and validates both types.
- target: $.paths['/api/v1/chats/{chat_id}/attachments'].post.requestBody.content['image/jpeg']
remove: true
# anyOf expresses runtime requirements, not different Go representations.
# The domain enforces text-or-attachments; the adapter keeps strict JSON decoding.
- target: $.components.schemas.CreateMessage.anyOf
remove: true
- target: $.components.schemas.Message.anyOf
remove: true