archctx-contracts 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fixtures/valid/archctx-capabilities.json +2 -2
- package/fixtures/valid/product-version-manifest.json +4 -10
- package/package.json +4 -1
- package/schemas/repo/refactor-decision.schema.json +283 -37
- package/schemas/runtime/archctx-capabilities.schema.json +144 -20
- package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
- package/schemas/runtime/architecture-debt.schema.json +42 -42
- package/schemas/runtime/architecture-event.schema.json +1 -1
- package/schemas/runtime/architecture-history.schema.json +354 -0
- package/schemas/runtime/capability-dependencies.schema.json +266 -59
- package/schemas/runtime/cli-check.schema.json +197 -0
- package/schemas/runtime/cli-help.schema.json +28 -0
- package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
- package/schemas/runtime/docs-anchors.schema.json +250 -67
- package/schemas/runtime/doctor-code-facts.schema.json +49 -0
- package/schemas/runtime/evidence-binding.schema.json +1 -1
- package/schemas/runtime/flow-selector-check.schema.json +179 -46
- package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
- package/schemas/runtime/index-seed.schema.json +56 -0
- package/schemas/runtime/path-context.schema.json +108 -0
- package/schemas/runtime/product-version-manifest.schema.json +142 -54
- package/schemas/runtime/projection-slice.schema.json +34 -34
- package/schemas/runtime/recommendation-v3.schema.json +372 -1
- package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
- package/schemas/runtime/ref-impact-batch.schema.json +83 -13
- package/schemas/runtime/ref-impact.schema.json +68 -61
- package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
- package/schemas/runtime/refactor-simulate.schema.json +505 -0
- package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
- package/schemas/runtime/resolve-path.schema.json +69 -0
- package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
- package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
- package/schemas/runtime/runtime-verify.schema.json +274 -56
- package/schemas/runtime/state-machine-check.schema.json +357 -89
- package/schemas/runtime/structural-observation-payload.schema.json +372 -1
- package/schemas/runtime/sync-check.schema.json +65 -0
- package/src/architecture-debt.ts +125 -38
- package/src/architecture-history.ts +168 -42
- package/src/architecture.ts +100 -0
- package/src/cli-read.ts +228 -0
- package/src/docs-anchors.ts +105 -50
- package/src/explorer-occurrence-ports.ts +175 -0
- package/src/explorer-query-ports.ts +270 -0
- package/src/failure.ts +3 -0
- package/src/index-seed.ts +42 -0
- package/src/index.ts +5 -0
- package/src/ledger-records.ts +262 -0
- package/src/ledger.ts +27 -566
- package/src/ownership-dependencies.ts +115 -5
- package/src/ports.ts +6 -541
- package/src/product-version.ts +74 -55
- package/src/projection-apply-types.ts +216 -0
- package/src/projection-apply-validators.ts +355 -0
- package/src/projection-capabilities.ts +181 -0
- package/src/projection-constants.ts +317 -0
- package/src/projection-manifest-types.ts +298 -0
- package/src/projection-manifest.ts +12 -299
- package/src/projection-recovery-validators.ts +229 -0
- package/src/projection-request-validators.ts +326 -0
- package/src/projection-types.ts +365 -0
- package/src/projection-validation-helpers.ts +15 -0
- package/src/projection.ts +7 -1689
- package/src/ref-impact.ts +225 -33
- package/src/refactor-constants.ts +213 -0
- package/src/refactor-decision-validators.ts +350 -0
- package/src/refactor-evidence-types.ts +286 -0
- package/src/refactor-observation-validators.ts +359 -0
- package/src/refactor-resolution-validators.ts +229 -0
- package/src/refactor-snapshot-validators.ts +368 -0
- package/src/refactor-types.ts +270 -0
- package/src/refactor-v2.ts +389 -0
- package/src/refactor-validation-helpers.ts +195 -0
- package/src/refactor.ts +7 -1849
- package/src/review-guards.ts +3 -23
- package/src/runtime-verify.ts +87 -0
- package/src/schema-kit.ts +183 -0
- package/src/schema-registry.ts +73 -0
- package/src/schema.ts +0 -4
- package/src/state-machine-schemas.ts +192 -0
- package/src/state-machine-types.ts +188 -0
- package/src/state-machine.ts +9 -189
- package/fixtures/boundary/agent-job-expired.json +0 -33
- package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
- package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
- package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
- package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
- package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
- package/fixtures/invalid/notification-event-code-field.json +0 -11
- package/fixtures/valid/adapter-fidelity.json +0 -9
- package/fixtures/valid/agent-job.json +0 -33
- package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
- package/fixtures/valid/architecture-candidate-delta.json +0 -188
- package/fixtures/valid/chatgpt-ga-tool.json +0 -9
- package/fixtures/valid/cloud-egress-envelope.json +0 -11
- package/fixtures/valid/entitlement.json +0 -12
- package/fixtures/valid/investigation-report.json +0 -38
- package/fixtures/valid/likec4-mapping.json +0 -14
- package/fixtures/valid/notification-event.json +0 -10
- package/fixtures/valid/notification-provider.json +0 -12
- package/fixtures/valid/structurizr-mapping.json +0 -15
- package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
- package/schemas/cloud/entitlement.schema.json +0 -24
- package/schemas/integrations/adapter-fidelity.schema.json +0 -21
- package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
- package/schemas/integrations/likec4-mapping.schema.json +0 -32
- package/schemas/integrations/structurizr-mapping.schema.json +0 -33
- package/schemas/runtime/agent-job.schema.json +0 -63
- package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
- package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
- package/schemas/runtime/investigation-report.schema.json +0 -119
- package/schemas/runtime/notification-event.schema.json +0 -18
- package/schemas/runtime/notification-provider.schema.json +0 -26
|
@@ -2,48 +2,172 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archcontext.dev/schemas/runtime/archctx-capabilities.schema.json",
|
|
4
4
|
"title": "ArchctxCapabilitiesV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
7
|
-
"
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"package",
|
|
10
|
+
"protocols",
|
|
11
|
+
"renderers",
|
|
12
|
+
"features"
|
|
13
|
+
],
|
|
8
14
|
"properties": {
|
|
9
|
-
"schemaVersion": {
|
|
15
|
+
"schemaVersion": {
|
|
16
|
+
"const": "archcontext.capabilities/v1"
|
|
17
|
+
},
|
|
10
18
|
"package": {
|
|
11
|
-
"type": "object",
|
|
12
19
|
"additionalProperties": false,
|
|
13
|
-
"
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": [
|
|
22
|
+
"name",
|
|
23
|
+
"version"
|
|
24
|
+
],
|
|
14
25
|
"properties": {
|
|
15
|
-
"name": {
|
|
16
|
-
|
|
26
|
+
"name": {
|
|
27
|
+
"const": "archctx"
|
|
28
|
+
},
|
|
29
|
+
"version": {
|
|
30
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
17
33
|
}
|
|
18
34
|
},
|
|
19
35
|
"protocols": {
|
|
20
|
-
"type": "object",
|
|
21
36
|
"additionalProperties": false,
|
|
22
|
-
"
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": [
|
|
39
|
+
"projectionRequest",
|
|
40
|
+
"projectionResult",
|
|
41
|
+
"architectureRefreshSignal"
|
|
42
|
+
],
|
|
23
43
|
"properties": {
|
|
24
|
-
"projectionRequest": {
|
|
25
|
-
|
|
26
|
-
|
|
44
|
+
"projectionRequest": {
|
|
45
|
+
"const": "archcontext.projection-request/v1"
|
|
46
|
+
},
|
|
47
|
+
"projectionResult": {
|
|
48
|
+
"const": "archcontext.projection-result/v3"
|
|
49
|
+
},
|
|
50
|
+
"architectureRefreshSignal": {
|
|
51
|
+
"const": "archcontext.architecture-refresh-signal/v2"
|
|
52
|
+
}
|
|
27
53
|
}
|
|
28
54
|
},
|
|
29
55
|
"renderers": {
|
|
30
|
-
"type": "object",
|
|
31
56
|
"additionalProperties": false,
|
|
32
|
-
"
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": [
|
|
59
|
+
"architectureDocs",
|
|
60
|
+
"agentContext"
|
|
61
|
+
],
|
|
33
62
|
"properties": {
|
|
34
|
-
"architectureDocs": {
|
|
35
|
-
|
|
63
|
+
"architectureDocs": {
|
|
64
|
+
"const": "archcontext.docs-renderer/v6"
|
|
65
|
+
},
|
|
66
|
+
"agentContext": {
|
|
67
|
+
"const": "archcontext.agent-context-renderer/v2"
|
|
68
|
+
}
|
|
36
69
|
}
|
|
37
70
|
},
|
|
38
71
|
"features": {
|
|
39
|
-
"type": "array",
|
|
40
|
-
"minItems": 3,
|
|
41
72
|
"uniqueItems": true,
|
|
73
|
+
"minItems": 3,
|
|
74
|
+
"type": "array",
|
|
42
75
|
"items": {
|
|
43
|
-
"type": "string",
|
|
44
76
|
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*-v[0-9]+$",
|
|
45
77
|
"description": "One feature flag: a lowercase kebab-case name that ends in a version suffix (-v1, -v2, ...). The pattern is open, so a validator built from this schema accepts flags that a later archctx adds. A consumer must ignore a flag it does not know. examples lists the flags this schema version knows.",
|
|
46
|
-
"examples": [
|
|
78
|
+
"examples": [
|
|
79
|
+
"architecture-change-capabilities-v1",
|
|
80
|
+
"architecture-debt-v1",
|
|
81
|
+
"architecture-docs-renderer-v2",
|
|
82
|
+
"architecture-refresh-signal-v1",
|
|
83
|
+
"capability-dependencies-declared-v1",
|
|
84
|
+
"capability-dependencies-v1",
|
|
85
|
+
"changeset-entity-operations-v1",
|
|
86
|
+
"changeset-ownership-delta-v1",
|
|
87
|
+
"cli-check-v1",
|
|
88
|
+
"code-facts-unavailable-error-v1",
|
|
89
|
+
"deps-calls-matrix-v1",
|
|
90
|
+
"docs-anchors-v1",
|
|
91
|
+
"flow-selector-check-v1",
|
|
92
|
+
"host-ownership-isolation-v1",
|
|
93
|
+
"index-seed-v1",
|
|
94
|
+
"module-statistics-v1",
|
|
95
|
+
"native-context-export-v1",
|
|
96
|
+
"projection-apply-receipt-v1",
|
|
97
|
+
"projection-apply-replay-restore-v1",
|
|
98
|
+
"projection-apply-replay-v1",
|
|
99
|
+
"projection-architecture-debt-v1",
|
|
100
|
+
"projection-capability-isolation-v1",
|
|
101
|
+
"projection-change-classification-v2",
|
|
102
|
+
"projection-check-freshness-v2",
|
|
103
|
+
"projection-freshness-v2",
|
|
104
|
+
"projection-manifest-contract-v4",
|
|
105
|
+
"projection-observed-major-change-acceptance-v1",
|
|
106
|
+
"projection-orphan-review-v1",
|
|
107
|
+
"projection-preview-v1",
|
|
108
|
+
"projection-prior-committed-applies-v1",
|
|
109
|
+
"projection-protocol-v2",
|
|
110
|
+
"projection-publish-v1",
|
|
111
|
+
"projection-slice-v1",
|
|
112
|
+
"projection-snapshot-v1",
|
|
113
|
+
"projection-verify-pr-v1",
|
|
114
|
+
"recommendation-scan-decision-v1",
|
|
115
|
+
"recommendation-v3",
|
|
116
|
+
"refactor-assessment-v1",
|
|
117
|
+
"refactor-observation-evidence-v1",
|
|
118
|
+
"refactor-radar-v2",
|
|
119
|
+
"refactor-resolution-v1",
|
|
120
|
+
"refactor-scan-limits-v1",
|
|
121
|
+
"refactor-scan-untracked-count-v1",
|
|
122
|
+
"refactor-simulate-v1",
|
|
123
|
+
"refactor-symbol-kill-list-v1"
|
|
124
|
+
],
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"codeFacts": {
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"type": "object",
|
|
131
|
+
"required": [
|
|
132
|
+
"state",
|
|
133
|
+
"codeGraphVersion",
|
|
134
|
+
"issues"
|
|
135
|
+
],
|
|
136
|
+
"properties": {
|
|
137
|
+
"state": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"enum": [
|
|
140
|
+
"ready",
|
|
141
|
+
"not-ready",
|
|
142
|
+
"index-missing",
|
|
143
|
+
"unavailable"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"codeGraphVersion": {
|
|
147
|
+
"minLength": 1,
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"issues": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": {
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"type": "object",
|
|
155
|
+
"required": [
|
|
156
|
+
"code",
|
|
157
|
+
"message"
|
|
158
|
+
],
|
|
159
|
+
"properties": {
|
|
160
|
+
"code": {
|
|
161
|
+
"minLength": 1,
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"message": {
|
|
165
|
+
"minLength": 1,
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
47
171
|
}
|
|
48
172
|
}
|
|
49
173
|
}
|
|
@@ -2,46 +2,85 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archctx.repoharness.com/schemas/runtime/architecture-debt-delta.schema.json",
|
|
4
4
|
"title": "ArchitectureDebtDeltaReportV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
7
|
-
"
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"head",
|
|
10
|
+
"base",
|
|
11
|
+
"introduced",
|
|
12
|
+
"resolvedIds"
|
|
13
|
+
],
|
|
8
14
|
"properties": {
|
|
9
|
-
"schemaVersion": {
|
|
15
|
+
"schemaVersion": {
|
|
16
|
+
"const": "archcontext.architecture-debt-delta/v1"
|
|
17
|
+
},
|
|
10
18
|
"head": {
|
|
11
|
-
"type": "object",
|
|
12
19
|
"additionalProperties": false,
|
|
13
|
-
"
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": [
|
|
22
|
+
"sha",
|
|
23
|
+
"debt"
|
|
24
|
+
],
|
|
14
25
|
"properties": {
|
|
15
|
-
"sha": {
|
|
16
|
-
|
|
26
|
+
"sha": {
|
|
27
|
+
"$ref": "#/$defs/commitSha"
|
|
28
|
+
},
|
|
29
|
+
"debt": {
|
|
30
|
+
"$ref": "architecture-debt.schema.json"
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
},
|
|
19
34
|
"base": {
|
|
20
|
-
"type": "object",
|
|
21
35
|
"additionalProperties": false,
|
|
22
|
-
"
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"ref",
|
|
39
|
+
"sha",
|
|
40
|
+
"debtDigest",
|
|
41
|
+
"coverage",
|
|
42
|
+
"coverageReasonCodes"
|
|
43
|
+
],
|
|
23
44
|
"properties": {
|
|
24
|
-
"ref": {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
45
|
+
"ref": {
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"sha": {
|
|
50
|
+
"$ref": "#/$defs/commitSha"
|
|
51
|
+
},
|
|
52
|
+
"debtDigest": {
|
|
53
|
+
"$ref": "architecture-debt.schema.json#/properties/digest"
|
|
54
|
+
},
|
|
55
|
+
"coverage": {
|
|
56
|
+
"$ref": "architecture-debt.schema.json#/properties/coverage"
|
|
57
|
+
},
|
|
58
|
+
"coverageReasonCodes": {
|
|
59
|
+
"$ref": "architecture-debt.schema.json#/properties/coverageReasonCodes"
|
|
60
|
+
}
|
|
29
61
|
}
|
|
30
62
|
},
|
|
31
63
|
"introduced": {
|
|
32
64
|
"description": "Items ordered by item ID.",
|
|
33
|
-
"type": "array",
|
|
34
65
|
"uniqueItems": true,
|
|
35
|
-
"
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "architecture-debt.schema.json#/properties/items/items"
|
|
69
|
+
}
|
|
36
70
|
},
|
|
37
71
|
"resolvedIds": {
|
|
38
72
|
"description": "Resolved item IDs in ascending order.",
|
|
39
|
-
"type": "array",
|
|
40
73
|
"uniqueItems": true,
|
|
41
|
-
"
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"$ref": "architecture-debt.schema.json#/properties/items/items/properties/id"
|
|
77
|
+
}
|
|
42
78
|
}
|
|
43
79
|
},
|
|
44
80
|
"$defs": {
|
|
45
|
-
"commitSha": {
|
|
81
|
+
"commitSha": {
|
|
82
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
46
85
|
}
|
|
47
86
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archctx.repoharness.com/schemas/runtime/architecture-debt.schema.json",
|
|
4
4
|
"title": "ArchitectureDebtReportV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
6
|
+
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"schemaVersion",
|
|
9
9
|
"scope",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"const": "archcontext.architecture-debt/v1"
|
|
20
20
|
},
|
|
21
21
|
"scope": {
|
|
22
|
-
"type": "object",
|
|
23
22
|
"additionalProperties": false,
|
|
23
|
+
"type": "object",
|
|
24
24
|
"required": [
|
|
25
25
|
"kind",
|
|
26
26
|
"changedPaths",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"changedPaths": {
|
|
37
|
-
"type": "array",
|
|
38
37
|
"uniqueItems": true,
|
|
38
|
+
"type": "array",
|
|
39
39
|
"items": {
|
|
40
|
-
"type": "string",
|
|
41
40
|
"minLength": 1,
|
|
42
|
-
"maxLength": 1024
|
|
41
|
+
"maxLength": 1024,
|
|
42
|
+
"type": "string"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"capabilityIds": {
|
|
46
|
-
"type": "array",
|
|
47
46
|
"uniqueItems": true,
|
|
47
|
+
"type": "array",
|
|
48
48
|
"items": {
|
|
49
|
-
"type": "string",
|
|
50
49
|
"minLength": 1,
|
|
51
|
-
"maxLength": 1024
|
|
50
|
+
"maxLength": 1024,
|
|
51
|
+
"type": "string"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"coverageReasonCodes": {
|
|
64
|
-
"type": "array",
|
|
65
64
|
"uniqueItems": true,
|
|
65
|
+
"type": "array",
|
|
66
66
|
"items": {
|
|
67
|
-
"type": "string",
|
|
68
67
|
"minLength": 1,
|
|
69
|
-
"maxLength": 1024
|
|
68
|
+
"maxLength": 1024,
|
|
69
|
+
"type": "string"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"checks": {
|
|
73
|
-
"type": "array",
|
|
74
73
|
"minItems": 6,
|
|
75
74
|
"maxItems": 6,
|
|
75
|
+
"type": "array",
|
|
76
76
|
"items": {
|
|
77
|
-
"type": "object",
|
|
78
77
|
"additionalProperties": false,
|
|
78
|
+
"type": "object",
|
|
79
79
|
"required": [
|
|
80
80
|
"check",
|
|
81
81
|
"coverage",
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"reasonCodes": {
|
|
103
|
-
"type": "array",
|
|
104
103
|
"uniqueItems": true,
|
|
104
|
+
"type": "array",
|
|
105
105
|
"items": {
|
|
106
|
-
"type": "string",
|
|
107
106
|
"minLength": 1,
|
|
108
|
-
"maxLength": 1024
|
|
107
|
+
"maxLength": 1024,
|
|
108
|
+
"type": "string"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
"items": {
|
|
115
115
|
"type": "array",
|
|
116
116
|
"items": {
|
|
117
|
-
"type": "object",
|
|
118
117
|
"additionalProperties": false,
|
|
118
|
+
"type": "object",
|
|
119
119
|
"required": [
|
|
120
120
|
"id",
|
|
121
121
|
"kind",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
],
|
|
129
129
|
"properties": {
|
|
130
130
|
"id": {
|
|
131
|
-
"
|
|
132
|
-
"
|
|
131
|
+
"pattern": "^debt\\.[a-f0-9]{64}$",
|
|
132
|
+
"type": "string"
|
|
133
133
|
},
|
|
134
134
|
"kind": {
|
|
135
135
|
"enum": [
|
|
@@ -144,41 +144,41 @@
|
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
"nodeIds": {
|
|
147
|
-
"type": "array",
|
|
148
147
|
"uniqueItems": true,
|
|
148
|
+
"type": "array",
|
|
149
149
|
"items": {
|
|
150
|
-
"type": "string",
|
|
151
150
|
"minLength": 1,
|
|
152
|
-
"maxLength": 1024
|
|
151
|
+
"maxLength": 1024,
|
|
152
|
+
"type": "string"
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
"capabilityIds": {
|
|
156
|
-
"type": "array",
|
|
157
156
|
"uniqueItems": true,
|
|
157
|
+
"type": "array",
|
|
158
158
|
"items": {
|
|
159
|
-
"type": "string",
|
|
160
159
|
"minLength": 1,
|
|
161
|
-
"maxLength": 1024
|
|
160
|
+
"maxLength": 1024,
|
|
161
|
+
"type": "string"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
"paths": {
|
|
165
|
-
"type": "array",
|
|
166
165
|
"uniqueItems": true,
|
|
166
|
+
"type": "array",
|
|
167
167
|
"items": {
|
|
168
|
-
"type": "string",
|
|
169
168
|
"minLength": 1,
|
|
170
|
-
"maxLength": 1024
|
|
169
|
+
"maxLength": 1024,
|
|
170
|
+
"type": "string"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
"reasonCode": {
|
|
174
|
-
"type": "string",
|
|
175
174
|
"minLength": 1,
|
|
176
|
-
"maxLength": 1024
|
|
175
|
+
"maxLength": 1024,
|
|
176
|
+
"type": "string"
|
|
177
177
|
},
|
|
178
178
|
"action": {
|
|
179
|
-
"type": "string",
|
|
180
179
|
"minLength": 1,
|
|
181
|
-
"maxLength": 1024
|
|
180
|
+
"maxLength": 1024,
|
|
181
|
+
"type": "string"
|
|
182
182
|
},
|
|
183
183
|
"details": {
|
|
184
184
|
"type": "object",
|
|
@@ -186,20 +186,20 @@
|
|
|
186
186
|
"additionalProperties": {
|
|
187
187
|
"oneOf": [
|
|
188
188
|
{
|
|
189
|
-
"type": "string",
|
|
190
189
|
"minLength": 1,
|
|
191
|
-
"maxLength": 1024
|
|
190
|
+
"maxLength": 1024,
|
|
191
|
+
"type": "string"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"type": "integer"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
"type": "array",
|
|
198
197
|
"uniqueItems": true,
|
|
198
|
+
"type": "array",
|
|
199
199
|
"items": {
|
|
200
|
-
"type": "string",
|
|
201
200
|
"minLength": 1,
|
|
202
|
-
"maxLength": 1024
|
|
201
|
+
"maxLength": 1024,
|
|
202
|
+
"type": "string"
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
]
|
|
@@ -209,17 +209,17 @@
|
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
"actionsRequired": {
|
|
212
|
-
"type": "array",
|
|
213
212
|
"uniqueItems": true,
|
|
213
|
+
"type": "array",
|
|
214
214
|
"items": {
|
|
215
|
-
"type": "string",
|
|
216
215
|
"minLength": 1,
|
|
217
|
-
"maxLength": 1024
|
|
216
|
+
"maxLength": 1024,
|
|
217
|
+
"type": "string"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
"digest": {
|
|
221
|
-
"
|
|
222
|
-
"
|
|
221
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
222
|
+
"type": "string"
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"additionalProperties": false,
|
|
232
232
|
"required": ["kind", "id"],
|
|
233
233
|
"properties": {
|
|
234
|
-
"kind": { "enum": ["entity", "relation", "constraint", "recommendation", "practice", "event", "snapshot", "subject"
|
|
234
|
+
"kind": { "enum": ["entity", "relation", "constraint", "recommendation", "practice", "event", "snapshot", "subject"] },
|
|
235
235
|
"id": { "type": "string", "minLength": 1 }
|
|
236
236
|
}
|
|
237
237
|
},
|