archctx-contracts 0.17.0 → 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.
Files changed (119) hide show
  1. package/fixtures/invalid/projection-result-applied-incomplete-coverage.json +3 -3
  2. package/fixtures/valid/archctx-capabilities.json +2 -2
  3. package/fixtures/valid/flow-selector-check.json +1 -1
  4. package/fixtures/valid/product-version-manifest.json +5 -11
  5. package/fixtures/valid/projection-manifest.json +1 -1
  6. package/fixtures/valid/projection-result.json +3 -3
  7. package/package.json +4 -1
  8. package/schemas/repo/refactor-decision.schema.json +283 -37
  9. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  10. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  11. package/schemas/runtime/architecture-debt.schema.json +42 -42
  12. package/schemas/runtime/architecture-event.schema.json +1 -1
  13. package/schemas/runtime/architecture-history.schema.json +354 -0
  14. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  15. package/schemas/runtime/cli-check.schema.json +197 -0
  16. package/schemas/runtime/cli-help.schema.json +28 -0
  17. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  18. package/schemas/runtime/docs-anchors.schema.json +250 -67
  19. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  20. package/schemas/runtime/evidence-binding.schema.json +1 -1
  21. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  22. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  23. package/schemas/runtime/index-seed.schema.json +56 -0
  24. package/schemas/runtime/path-context.schema.json +108 -0
  25. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  26. package/schemas/runtime/projection-apply-readback.schema.json +2 -2
  27. package/schemas/runtime/projection-apply-recovery.schema.json +1 -1
  28. package/schemas/runtime/projection-result.schema.json +1 -1
  29. package/schemas/runtime/projection-slice.schema.json +34 -34
  30. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  31. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  32. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  33. package/schemas/runtime/ref-impact.schema.json +68 -61
  34. package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
  35. package/schemas/runtime/refactor-simulate.schema.json +505 -0
  36. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  37. package/schemas/runtime/resolve-path.schema.json +69 -0
  38. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  39. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  40. package/schemas/runtime/runtime-verify.schema.json +274 -56
  41. package/schemas/runtime/state-machine-check.schema.json +357 -89
  42. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  43. package/schemas/runtime/sync-check.schema.json +65 -0
  44. package/src/architecture-debt.ts +125 -38
  45. package/src/architecture-history.ts +168 -42
  46. package/src/architecture.ts +100 -0
  47. package/src/cli-read.ts +228 -0
  48. package/src/docs-anchors.ts +105 -50
  49. package/src/explorer-occurrence-ports.ts +175 -0
  50. package/src/explorer-query-ports.ts +270 -0
  51. package/src/failure.ts +3 -0
  52. package/src/index-seed.ts +42 -0
  53. package/src/index.ts +5 -0
  54. package/src/ledger-records.ts +262 -0
  55. package/src/ledger.ts +27 -566
  56. package/src/ownership-dependencies.ts +115 -5
  57. package/src/ports.ts +12 -543
  58. package/src/product-version.ts +75 -56
  59. package/src/projection-apply-types.ts +216 -0
  60. package/src/projection-apply-validators.ts +355 -0
  61. package/src/projection-capabilities.ts +181 -0
  62. package/src/projection-constants.ts +317 -0
  63. package/src/projection-manifest-types.ts +298 -0
  64. package/src/projection-manifest.ts +12 -299
  65. package/src/projection-recovery-validators.ts +229 -0
  66. package/src/projection-request-validators.ts +326 -0
  67. package/src/projection-types.ts +365 -0
  68. package/src/projection-validation-helpers.ts +15 -0
  69. package/src/projection.ts +7 -1689
  70. package/src/ref-impact.ts +225 -33
  71. package/src/refactor-constants.ts +213 -0
  72. package/src/refactor-decision-validators.ts +350 -0
  73. package/src/refactor-evidence-types.ts +286 -0
  74. package/src/refactor-observation-validators.ts +359 -0
  75. package/src/refactor-resolution-validators.ts +229 -0
  76. package/src/refactor-snapshot-validators.ts +368 -0
  77. package/src/refactor-types.ts +270 -0
  78. package/src/refactor-v2.ts +389 -0
  79. package/src/refactor-validation-helpers.ts +195 -0
  80. package/src/refactor.ts +7 -1849
  81. package/src/review-guards.ts +3 -23
  82. package/src/runtime-verify.ts +87 -0
  83. package/src/schema-kit.ts +183 -0
  84. package/src/schema-registry.ts +73 -0
  85. package/src/schema.ts +0 -4
  86. package/src/state-machine-schemas.ts +192 -0
  87. package/src/state-machine-types.ts +188 -0
  88. package/src/state-machine.ts +9 -189
  89. package/fixtures/boundary/agent-job-expired.json +0 -33
  90. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  91. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  92. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  93. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  94. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  95. package/fixtures/invalid/notification-event-code-field.json +0 -11
  96. package/fixtures/valid/adapter-fidelity.json +0 -9
  97. package/fixtures/valid/agent-job.json +0 -33
  98. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  99. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  100. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  101. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  102. package/fixtures/valid/entitlement.json +0 -12
  103. package/fixtures/valid/investigation-report.json +0 -38
  104. package/fixtures/valid/likec4-mapping.json +0 -14
  105. package/fixtures/valid/notification-event.json +0 -10
  106. package/fixtures/valid/notification-provider.json +0 -12
  107. package/fixtures/valid/structurizr-mapping.json +0 -15
  108. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  109. package/schemas/cloud/entitlement.schema.json +0 -24
  110. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  111. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  112. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  113. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  114. package/schemas/runtime/agent-job.schema.json +0 -63
  115. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  116. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  117. package/schemas/runtime/investigation-report.schema.json +0 -119
  118. package/schemas/runtime/notification-event.schema.json +0 -18
  119. 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
- "required": ["schemaVersion", "package", "protocols", "renderers", "features"],
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "package",
10
+ "protocols",
11
+ "renderers",
12
+ "features"
13
+ ],
8
14
  "properties": {
9
- "schemaVersion": { "const": "archcontext.capabilities/v1" },
15
+ "schemaVersion": {
16
+ "const": "archcontext.capabilities/v1"
17
+ },
10
18
  "package": {
11
- "type": "object",
12
19
  "additionalProperties": false,
13
- "required": ["name", "version"],
20
+ "type": "object",
21
+ "required": [
22
+ "name",
23
+ "version"
24
+ ],
14
25
  "properties": {
15
- "name": { "const": "archctx" },
16
- "version": { "type": "string", "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-]+)*)?$" }
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
- "required": ["projectionRequest", "projectionResult", "architectureRefreshSignal"],
37
+ "type": "object",
38
+ "required": [
39
+ "projectionRequest",
40
+ "projectionResult",
41
+ "architectureRefreshSignal"
42
+ ],
23
43
  "properties": {
24
- "projectionRequest": { "const": "archcontext.projection-request/v1" },
25
- "projectionResult": { "const": "archcontext.projection-result/v3" },
26
- "architectureRefreshSignal": { "const": "archcontext.architecture-refresh-signal/v2" }
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
- "required": ["architectureDocs", "agentContext"],
57
+ "type": "object",
58
+ "required": [
59
+ "architectureDocs",
60
+ "agentContext"
61
+ ],
33
62
  "properties": {
34
- "architectureDocs": { "const": "archcontext.docs-renderer/v6" },
35
- "agentContext": { "const": "archcontext.agent-context-renderer/v2" }
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": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-v2", "projection-check-freshness-v2", "projection-freshness-v2", "projection-manifest-contract-v4", "projection-observed-major-change-acceptance-v1", "projection-orphan-review-v1", "projection-preview-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "projection-publish-v1", "projection-slice-v1", "projection-snapshot-v1", "projection-verify-pr-v1", "recommendation-scan-decision-v1", "recommendation-v3", "refactor-assessment-v1", "refactor-observation-evidence-v1", "refactor-resolution-v1", "refactor-scan-limits-v1", "refactor-scan-untracked-count-v1"]
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
- "required": ["schemaVersion", "head", "base", "introduced", "resolvedIds"],
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "head",
10
+ "base",
11
+ "introduced",
12
+ "resolvedIds"
13
+ ],
8
14
  "properties": {
9
- "schemaVersion": { "const": "archcontext.architecture-debt-delta/v1" },
15
+ "schemaVersion": {
16
+ "const": "archcontext.architecture-debt-delta/v1"
17
+ },
10
18
  "head": {
11
- "type": "object",
12
19
  "additionalProperties": false,
13
- "required": ["sha", "debt"],
20
+ "type": "object",
21
+ "required": [
22
+ "sha",
23
+ "debt"
24
+ ],
14
25
  "properties": {
15
- "sha": { "$ref": "#/$defs/commitSha" },
16
- "debt": { "$ref": "architecture-debt.schema.json" }
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
- "required": ["ref", "sha", "debtDigest", "coverage", "coverageReasonCodes"],
36
+ "type": "object",
37
+ "required": [
38
+ "ref",
39
+ "sha",
40
+ "debtDigest",
41
+ "coverage",
42
+ "coverageReasonCodes"
43
+ ],
23
44
  "properties": {
24
- "ref": { "type": "string", "minLength": 1 },
25
- "sha": { "$ref": "#/$defs/commitSha" },
26
- "debtDigest": { "$ref": "architecture-debt.schema.json#/properties/digest" },
27
- "coverage": { "$ref": "architecture-debt.schema.json#/properties/coverage" },
28
- "coverageReasonCodes": { "$ref": "architecture-debt.schema.json#/properties/coverageReasonCodes" }
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
- "items": { "$ref": "architecture-debt.schema.json#/properties/items/items" }
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
- "items": { "$ref": "architecture-debt.schema.json#/properties/items/items/properties/id" }
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": { "type": "string", "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$" }
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
- "type": "string",
132
- "pattern": "^debt\\.[a-f0-9]{64}$"
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
- "type": "string",
222
- "pattern": "^sha256:[a-f0-9]{64}$"
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", "candidate-delta"] },
234
+ "kind": { "enum": ["entity", "relation", "constraint", "recommendation", "practice", "event", "snapshot", "subject"] },
235
235
  "id": { "type": "string", "minLength": 1 }
236
236
  }
237
237
  },