{ "version": "1.1", "id": "messaging-schema-avro-c03", "title": "얕은 복사가 만든 구멍", "question": "레지스트리 복사는 어디까지 막는가?", "type": "sequence", "direction": "LR", "audience": [ "이 저장소의 구조를 읽는 사람" ], "summary": "중첩 맵은 바깥 맵만 복사돼 안쪽 맵이 호출자 소유로 남고 평탄화된 키는 두 레벨 모두 복사된다.", "alt": "같은 등록이 중첩 맵으로 가면 바깥만 복사되고 평탄화된 키로 가면 두 레벨 모두 복사되는 순서.", "long_description": "SSOT 는 중첩 맵에 Map.copyOf 를 쓰면 얕은 복사가 되어 호출자가 생성 후 스키마를 교체할 수 있다고 적는다. 평탄화된 키 쪽은 두 레벨이 모두 복사되고 버전이 키의 일부가 된다.", "source_context": { "document": "/home/donghyeon/workspace/chat-gpt-container/document-haness/docs/clean-architecture-backend-template/final/document.md", "document_sha256": "8071fe71b3359d9cf60b95909c26c7b50653ce2f22bbc5fcf6988719bb91236d", "anchor": { "kind": "line", "value": 36092, "line": 36092 } }, "composition": { "profile": "sequence", "diagram_only": true, "reference_ids": [ "payment-approval-sequence" ], "rationale": "같은 복사가 두 자료 구조에서 다른 범위를 갖는다는 것이 순서로 드러난다.", "focus_node": "nested" }, "groups": [], "nodes": [ { "id": "caller", "label": "등록 호출자", "kind": "service", "role": "participant", "evidence": [ { "start_line": 36092, "end_line": 36108 } ], "assumption": false }, { "id": "nested", "label": "중첩 맵", "kind": "service", "role": "participant", "evidence": [ { "start_line": 36092, "end_line": 36108 } ], "assumption": false, "emphasis": "primary", "details": [ "안쪽 맵은 호출자 소유" ] }, { "id": "flat", "label": "평탄화된 키", "kind": "service", "role": "participant", "evidence": [ { "start_line": 36092, "end_line": 36110 } ], "assumption": false, "details": [ "버전이 키의 일부" ] } ], "edges": [ { "id": "m1", "from": "caller", "to": "nested", "label": "등록", "kind": "request", "evidence": [ { "start_line": 36092, "end_line": 36108 } ], "assumption": false, "order": 1 }, { "id": "m2", "from": "nested", "to": "caller", "label": "바깥 맵만 복사", "kind": "response", "evidence": [ { "start_line": 36092, "end_line": 36108 } ], "assumption": false, "order": 2, "style": "dashed", "emphasis": "primary" }, { "id": "m3", "from": "caller", "to": "flat", "label": "등록", "kind": "request", "evidence": [ { "start_line": 36092, "end_line": 36110 } ], "assumption": false, "order": 3 }, { "id": "m4", "from": "flat", "to": "caller", "label": "두 레벨 모두 복사", "kind": "response", "evidence": [ { "start_line": 36092, "end_line": 36110 } ], "assumption": false, "order": 4 } ], "legend": [], "metadata": {} }