fix: 관계와 카탈로그가 환경 구성을 가리킬 수 있게 한다

계약의 종류 enum 이 한 곳이 아니다. RecordKind 말고도 CatalogEntry.kind 와
ResolvedRelation.targetKind 가 따로 종류를 나열한다. 둘을 빠뜨리면 Case 가
셋업을 관계로 걸 수 없고, 걸어도 응답에서 종류가 튕긴다.

백엔드의 계약 union Jackson 테스트가 CatalogEntry 쪽을 잡았고, 프론트의
타입 검사가 ResolvedRelation 쪽을 잡았다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PTnWufiY9ATv57egkKKVAV
This commit is contained in:
DongHyeonka
2026-09-09 14:32:55 +09:00
co-authored by Claude Opus 5
parent 3af9be9e09
commit 7cd11a7b35
6 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -38,28 +38,28 @@
},
"contractSet": {
"setAlgorithm": "CA_CONTRACT_SET_V1",
"setDigest": "sha256:2348342224565150bb098988b0f2fceb6b7b41ddfc8563308a3817d686f01cd6",
"setDigest": "sha256:9f103bda702c05965e54732f975f68f5f850d9496fc2a59209d9891e64602d80",
"packages": [
{
"packageId": "@tech-log/management-contract",
"version": "1.0.0",
"digest": "sha256:0c226600c45b06433480a8a2ef3d812480dce3850c333bfcab5f626143ce77ea",
"runtimeProtocolVersion": 1,
"sourceRevision": "1249527"
"sourceRevision": "4065e89"
},
{
"packageId": "@tech-log/public-contract",
"version": "2.1.0",
"digest": "sha256:0159d7b834d69252c6edcb5102166084769a58fe1c36764958b90511bb5ec2cc",
"runtimeProtocolVersion": 1,
"sourceRevision": "1249527"
"sourceRevision": "4065e89"
},
{
"packageId": "@tech-log/studio-contract",
"version": "3.1.0",
"digest": "sha256:035b07f07eb0d26062b940a3652960444274f34ac9cb273391a3df2326ed14a8",
"digest": "sha256:d06434f33a944f4bbcb26d8725e36c0391685125d2f902176c7ec4b16a78dc40",
"runtimeProtocolVersion": 1,
"sourceRevision": "1249527"
"sourceRevision": "4065e89"
}
]
}
@@ -2,7 +2,7 @@
"packageId": "@tech-log/management-contract",
"version": "1.0.0",
"digest": "sha256:0c226600c45b06433480a8a2ef3d812480dce3850c333bfcab5f626143ce77ea",
"sourceRevision": "1249527",
"sourceRevision": "4065e89",
"operationIds": [
"createCaseDraft",
"getCaseForEdit",
@@ -2,7 +2,7 @@
"packageId": "@tech-log/public-contract",
"version": "2.1.0",
"digest": "sha256:0159d7b834d69252c6edcb5102166084769a58fe1c36764958b90511bb5ec2cc",
"sourceRevision": "1249527",
"sourceRevision": "4065e89",
"operationIds": [
"getPublicSite",
"getPublicHome",
@@ -1,8 +1,8 @@
{
"packageId": "@tech-log/studio-contract",
"version": "3.1.0",
"digest": "sha256:035b07f07eb0d26062b940a3652960444274f34ac9cb273391a3df2326ed14a8",
"sourceRevision": "1249527",
"digest": "sha256:d06434f33a944f4bbcb26d8725e36c0391685125d2f902176c7ec4b16a78dc40",
"sourceRevision": "4065e89",
"operationIds": [
"getStudioSession",
"getStudioDashboard",
@@ -916,7 +916,7 @@ export interface components {
/** Format: uuid */
targetId: string;
/** @enum {string} */
targetKind: "CASE" | "REFERENCE" | "QUESTION" | "PROJECT" | "PROJECT_DECISION" | "CONCEPT";
targetKind: "CASE" | "REFERENCE" | "QUESTION" | "PROJECT" | "PROJECT_DECISION" | "CONCEPT" | "SETUP";
title: string;
publicPath: string | null;
reason: string;
@@ -1422,7 +1422,7 @@ export interface components {
type: components["schemas"]["CatalogEntryType"];
label: string;
/** @enum {string} */
kind?: "CASE" | "REFERENCE" | "QUESTION" | "PROJECT" | "PROJECT_DECISION" | "CONCEPT";
kind?: "CASE" | "REFERENCE" | "QUESTION" | "PROJECT" | "PROJECT_DECISION" | "CONCEPT" | "SETUP";
publicPath?: string;
dependencyRevision: components["schemas"]["DependencyRevision"];
};
@@ -1312,7 +1312,7 @@ components:
properties:
id: { type: string, format: uuid }
targetId: { type: string, format: uuid }
targetKind: { type: string, enum: [CASE, REFERENCE, QUESTION, PROJECT, PROJECT_DECISION, CONCEPT] }
targetKind: { type: string, enum: [CASE, REFERENCE, QUESTION, PROJECT, PROJECT_DECISION, CONCEPT, SETUP] }
title: { type: string, minLength: 1, maxLength: 200 }
publicPath: { type: [string, "null"], maxLength: 500 }
reason: { type: string, maxLength: 100000 }
@@ -1904,7 +1904,7 @@ components:
id: { type: string, format: uuid }
type: { $ref: "#/components/schemas/CatalogEntryType" }
label: { type: string, minLength: 1, maxLength: 200 }
kind: { type: string, enum: [CASE, REFERENCE, QUESTION, PROJECT, PROJECT_DECISION, CONCEPT] }
kind: { type: string, enum: [CASE, REFERENCE, QUESTION, PROJECT, PROJECT_DECISION, CONCEPT, SETUP] }
publicPath: { type: string, minLength: 1, maxLength: 500 }
dependencyRevision: { $ref: "#/components/schemas/DependencyRevision" }
CatalogPage: