@radicaltools/cli 0.2.0 → 0.3.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/README.md +237 -22
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
- package/dist/index.js +9204 -5242
- package/package.json +5 -3
|
@@ -0,0 +1,935 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-api-evolution",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "API evolution",
|
|
6
|
+
"description": "An API other systems call: how its contract is written, how it may change without breaking its callers, how versions are named, and how long an old one lives.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"api",
|
|
9
|
+
"versioning",
|
|
10
|
+
"compatibility",
|
|
11
|
+
"contracts",
|
|
12
|
+
"deprecation",
|
|
13
|
+
"contract-testing"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "api-evolution",
|
|
18
|
+
"trigger": "LIST RELATIONS WHERE source.external = true AND target.external != true AND (target.type = \"system\" OR target.type = \"container\" OR target.type = \"webapp\" OR target.type = \"component\")",
|
|
19
|
+
"applyTo": "target",
|
|
20
|
+
"why": "other systems call these elements, so how their API may change without breaking them has to be decided.",
|
|
21
|
+
"group": "integration"
|
|
22
|
+
},
|
|
23
|
+
"sources": [
|
|
24
|
+
{
|
|
25
|
+
"title": "OpenAPI Specification (latest)",
|
|
26
|
+
"url": "https://spec.openapis.org/oas/latest.html"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "RFC 8594, The Sunset HTTP Header Field",
|
|
30
|
+
"url": "https://www.rfc-editor.org/rfc/rfc8594"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "RFC 9745, The Deprecation HTTP Response Header Field",
|
|
34
|
+
"url": "https://www.rfc-editor.org/rfc/rfc9745"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "Google AIP-180, Backwards compatibility",
|
|
38
|
+
"url": "https://google.aip.dev/180"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Google AIP-185, API Versioning",
|
|
42
|
+
"url": "https://google.aip.dev/185"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Microsoft REST API Guidelines",
|
|
46
|
+
"url": "https://github.com/microsoft/api-guidelines"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "microservices.io, Service Integration Contract Test",
|
|
50
|
+
"url": "https://microservices.io/patterns/testing/service-integration-contract-test.html"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"templateParams": [
|
|
54
|
+
{
|
|
55
|
+
"key": "FORMAT",
|
|
56
|
+
"title": "Contract",
|
|
57
|
+
"label": "How is the API described?",
|
|
58
|
+
"hint": "A machine-readable contract is what callers generate clients from and what every change is checked against for breaks.",
|
|
59
|
+
"defaultValue": "openapi",
|
|
60
|
+
"options": [
|
|
61
|
+
{
|
|
62
|
+
"value": "openapi",
|
|
63
|
+
"label": "OpenAPI 3.1",
|
|
64
|
+
"description": "REST over HTTP, described in an OpenAPI document; breaking changes are found with oasdiff. Pick it for resource-style HTTP APIs and for public or partner APIs, where callers expect plain HTTP and JSON."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "graphql",
|
|
68
|
+
"label": "a GraphQL schema",
|
|
69
|
+
"description": "One endpoint where callers choose the fields they read; it evolves by adding fields and marking old ones @deprecated, checked with graphql-inspector. Pick it when many clients need different shapes of the same data, usually front ends."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "protobuf",
|
|
73
|
+
"label": "Protocol Buffers (gRPC)",
|
|
74
|
+
"description": "Binary contracts in .proto files whose field numbers are never reused, checked with buf breaking. Pick it for service-to-service calls with high volume or streaming, where both sides use generated code."
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"key": "CHANGE",
|
|
80
|
+
"title": "Changes",
|
|
81
|
+
"label": "How may the API change?",
|
|
82
|
+
"hint": "A caller you do not release with cannot change on the day you do; this decides whether a breaking change is ever allowed in place.",
|
|
83
|
+
"defaultValue": "additive",
|
|
84
|
+
"options": [
|
|
85
|
+
{
|
|
86
|
+
"value": "additive",
|
|
87
|
+
"label": "additive only, breaks in a new version",
|
|
88
|
+
"description": "Every release only adds; anything that would break a caller goes into a new version served beside the old one until its sunset. Pick it when any caller is released on its own schedule: partners, installed mobile apps, other teams' services."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "instep",
|
|
92
|
+
"label": "in step with its callers",
|
|
93
|
+
"description": "The API and every caller change in one release, so a breaking change is allowed. Pick it only when every caller is yours, built in the same repository or release train, and no old client stays installed (no mobile app, no partner)."
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "VERSIONING",
|
|
99
|
+
"title": "Versions",
|
|
100
|
+
"label": "How does a caller name the version it wants?",
|
|
101
|
+
"hint": "Only matters when breaking changes go to a new version; with changes in step with the callers the answer is not used.",
|
|
102
|
+
"defaultValue": "path",
|
|
103
|
+
"options": [
|
|
104
|
+
{
|
|
105
|
+
"value": "path",
|
|
106
|
+
"label": "a major version in the path",
|
|
107
|
+
"description": "/v1/, /v2/ in the URL; for Protocol Buffers the package suffix .v1 (AIP-185). Pick it for public and partner REST or gRPC APIs: the version shows in every log line and is easy to route and to cache."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "header",
|
|
111
|
+
"label": "a version header",
|
|
112
|
+
"description": "Callers name the version in an Api-Version header (gRPC metadata for Protocol Buffers), often a date as Stripe does. Pick it when URLs must stay the same across versions (stored links, hypermedia) or versions are frequent and small."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"value": "none",
|
|
116
|
+
"label": "no versions, deprecation field by field",
|
|
117
|
+
"description": "There is only ever one version: an element is removed only after it has been deprecated for the sunset period and nobody uses it. Pick it for GraphQL, or for any API where you can see each caller's usage."
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "CONTRACT_TESTS",
|
|
123
|
+
"title": "Contract tests",
|
|
124
|
+
"label": "How is it checked that the API keeps its promises?",
|
|
125
|
+
"hint": "A contract diff finds a break in the document; a test against the running API finds a break in what it really serves.",
|
|
126
|
+
"defaultValue": "pact",
|
|
127
|
+
"options": [
|
|
128
|
+
{
|
|
129
|
+
"value": "pact",
|
|
130
|
+
"label": "consumer-driven contract tests (Pact)",
|
|
131
|
+
"description": "Each caller records the interactions it relies on and publishes them to a Pact Broker; every build of the API verifies them all, and can-i-deploy blocks a release that would break one. Pick it when the callers are known teams who can run Pact in their builds."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "conformance",
|
|
135
|
+
"label": "conformance tests against the contract",
|
|
136
|
+
"description": "Tests generated from the published contract (Schemathesis) call every operation of the running API and fail on any answer the contract does not describe. Pick it when callers are unknown or outside (a public API, many partners) and cannot give you tests."
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"key": "SUNSET_MONTHS",
|
|
142
|
+
"label": "For how many months is a deprecated version or field still served?",
|
|
143
|
+
"defaultValue": "6",
|
|
144
|
+
"type": "number"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"key": "USAGE_DAYS",
|
|
148
|
+
"label": "For how many days must nobody use a deprecated element before it is removed?",
|
|
149
|
+
"defaultValue": "30",
|
|
150
|
+
"type": "number"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"nodes": [
|
|
155
|
+
{
|
|
156
|
+
"id": "need",
|
|
157
|
+
"type": "need",
|
|
158
|
+
"label": "Callers not broken",
|
|
159
|
+
"x": 0,
|
|
160
|
+
"y": 0,
|
|
161
|
+
"kind": "brief",
|
|
162
|
+
"source": "Hub concern pack: API evolution",
|
|
163
|
+
"description": "Other systems call this API, and they are released on their own schedule by people who do not see our code. A renamed field, a new required parameter, a narrower type or a changed error breaks them without warning; without a contract nobody can tell which change breaks what, and without notice and a date a caller cannot plan its move off an old version. The API also has to keep changing, so the rules must make safe changes cheap and unsafe ones visible."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "req-contract",
|
|
167
|
+
"type": "requirement",
|
|
168
|
+
"label": "Contract published",
|
|
169
|
+
"x": 260,
|
|
170
|
+
"y": 0,
|
|
171
|
+
"ears_type": "ubiquitous",
|
|
172
|
+
"action": "publish its interface as {{FORMAT}}, kept in the repository with the code, released with every version and served at a stable URL, and fail the build when what it serves differs from that contract",
|
|
173
|
+
"rationale": "The contract is what callers build against and what every change is checked against; a contract that drifts from the code is worse than none (OpenAPI Specification; Google AIP-180)."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "req-compat",
|
|
177
|
+
"type": "requirement",
|
|
178
|
+
"label": "Breaking changes versioned",
|
|
179
|
+
"x": 260,
|
|
180
|
+
"y": 130,
|
|
181
|
+
"ears_type": "unwanted-behaviour",
|
|
182
|
+
"unwanted_condition": "a pull request removes or renames a field, operation, enum value or error code, makes an optional input required, narrows a type, or changes what a field means",
|
|
183
|
+
"action": "refuse it unless the change goes into a new major version served beside the old one, so that 0 breaking changes reach a released version",
|
|
184
|
+
"rationale": "Adding is safe; anything else breaks a caller that has not changed (Google AIP-180 lists the changes that break source, wire and semantic compatibility).",
|
|
185
|
+
"hubWhen": {
|
|
186
|
+
"CHANGE": [
|
|
187
|
+
"additive"
|
|
188
|
+
],
|
|
189
|
+
"VERSIONING": [
|
|
190
|
+
"path",
|
|
191
|
+
"header"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "req-path",
|
|
197
|
+
"type": "requirement",
|
|
198
|
+
"label": "Major version in path",
|
|
199
|
+
"x": 260,
|
|
200
|
+
"y": 260,
|
|
201
|
+
"ears_type": "ubiquitous",
|
|
202
|
+
"action": "serve each major version under its own path prefix (/v1/, /v2/; the package suffix .v1 for Protocol Buffers), serve at most two major versions at once, and change a released major version only by adding",
|
|
203
|
+
"rationale": "A version in the path is visible in every log and easy to route; two at a time bounds the cost of keeping old ones (Google AIP-185, Microsoft REST API Guidelines).",
|
|
204
|
+
"hubWhen": {
|
|
205
|
+
"CHANGE": [
|
|
206
|
+
"additive"
|
|
207
|
+
],
|
|
208
|
+
"VERSIONING": [
|
|
209
|
+
"path"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "req-header",
|
|
215
|
+
"type": "requirement",
|
|
216
|
+
"label": "Version named per request",
|
|
217
|
+
"x": 260,
|
|
218
|
+
"y": 390,
|
|
219
|
+
"ears_type": "unwanted-behaviour",
|
|
220
|
+
"unwanted_condition": "a request carries no Api-Version header, or names a version that is not served",
|
|
221
|
+
"action": "answer 400 with the list of versions served, and otherwise answer in the version named and echo it in the response, serving at most two major versions at once",
|
|
222
|
+
"rationale": "A caller that does not name a version gets whatever is newest and breaks on the next release; requiring it makes the dependency explicit (Microsoft REST API Guidelines require an explicit api-version).",
|
|
223
|
+
"hubWhen": {
|
|
224
|
+
"CHANGE": [
|
|
225
|
+
"additive"
|
|
226
|
+
],
|
|
227
|
+
"VERSIONING": [
|
|
228
|
+
"header"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "req-versionless",
|
|
234
|
+
"type": "requirement",
|
|
235
|
+
"label": "Removal only after disuse",
|
|
236
|
+
"x": 260,
|
|
237
|
+
"y": 520,
|
|
238
|
+
"ears_type": "unwanted-behaviour",
|
|
239
|
+
"unwanted_condition": "a pull request removes, renames or changes the meaning of an element of the contract",
|
|
240
|
+
"action": "refuse it unless the element has been deprecated for at least {{SUNSET_MONTHS}} months and no caller has used it for {{USAGE_DAYS}} days",
|
|
241
|
+
"rationale": "With a single version nothing may break in place; usage data is what makes a removal safe (GraphQL specification, @deprecated; Google AIP-180).",
|
|
242
|
+
"hubWhen": {
|
|
243
|
+
"CHANGE": [
|
|
244
|
+
"additive"
|
|
245
|
+
],
|
|
246
|
+
"VERSIONING": [
|
|
247
|
+
"none"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": "req-sunset",
|
|
253
|
+
"type": "requirement",
|
|
254
|
+
"label": "Deprecation announced",
|
|
255
|
+
"x": 260,
|
|
256
|
+
"y": 650,
|
|
257
|
+
"ears_type": "event-driven",
|
|
258
|
+
"trigger": "a version, operation or field is deprecated",
|
|
259
|
+
"action": "mark it deprecated in the contract, add a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) with a date at least {{SUNSET_MONTHS}} months away to every answer that uses it, tell every known caller, and keep serving it until that date",
|
|
260
|
+
"rationale": "Callers need notice they can read in code and a date they can plan for; the headers make both machine-readable (RFC 9745, RFC 8594).",
|
|
261
|
+
"hubWhen": {
|
|
262
|
+
"CHANGE": [
|
|
263
|
+
"additive"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "req-usage",
|
|
269
|
+
"type": "requirement",
|
|
270
|
+
"label": "Usage of deprecated counted",
|
|
271
|
+
"x": 260,
|
|
272
|
+
"y": 780,
|
|
273
|
+
"ears_type": "ubiquitous",
|
|
274
|
+
"action": "count the calls to every deprecated version, operation and field per calling system and day, and keep the counts until the sunset date",
|
|
275
|
+
"rationale": "Without usage per caller, a sunset date is a guess and the callers still on an old version are found by breaking them.",
|
|
276
|
+
"hubWhen": {
|
|
277
|
+
"CHANGE": [
|
|
278
|
+
"additive"
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "req-instep",
|
|
284
|
+
"type": "requirement",
|
|
285
|
+
"label": "Released with its callers",
|
|
286
|
+
"x": 260,
|
|
287
|
+
"y": 910,
|
|
288
|
+
"ears_type": "ubiquitous",
|
|
289
|
+
"action": "release a change of its contract only in the same release as every caller that uses it, built and tested together in one pipeline",
|
|
290
|
+
"rationale": "Breaking in place is only safe when no caller can be left behind; one pipeline makes that a fact rather than a promise.",
|
|
291
|
+
"hubWhen": {
|
|
292
|
+
"CHANGE": [
|
|
293
|
+
"instep"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "req-pact",
|
|
299
|
+
"type": "requirement",
|
|
300
|
+
"label": "Caller contracts verified",
|
|
301
|
+
"x": 260,
|
|
302
|
+
"y": 1040,
|
|
303
|
+
"ears_type": "event-driven",
|
|
304
|
+
"trigger": "the API or one of its callers is built",
|
|
305
|
+
"action": "verify every caller's published contract against the API, and block the deployment of either side while one verification fails",
|
|
306
|
+
"rationale": "A caller's contract states what it really relies on, which a contract diff cannot know (microservices.io, Service Integration Contract Test; Pact).",
|
|
307
|
+
"hubWhen": {
|
|
308
|
+
"CONTRACT_TESTS": [
|
|
309
|
+
"pact"
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "req-conformance",
|
|
315
|
+
"type": "requirement",
|
|
316
|
+
"label": "Running API conforms",
|
|
317
|
+
"x": 260,
|
|
318
|
+
"y": 1170,
|
|
319
|
+
"ears_type": "event-driven",
|
|
320
|
+
"trigger": "the API is built",
|
|
321
|
+
"action": "run tests generated from its contract against every operation of a running instance, and fail the build on any answer whose status code or body the contract does not describe",
|
|
322
|
+
"rationale": "Callers you cannot ask for tests rely on the contract alone, so the contract must be true of the running API (OpenAPI Specification).",
|
|
323
|
+
"hubWhen": {
|
|
324
|
+
"CONTRACT_TESTS": [
|
|
325
|
+
"conformance"
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "sc-contract",
|
|
331
|
+
"type": "scenario",
|
|
332
|
+
"label": "Contract matches release",
|
|
333
|
+
"x": 520,
|
|
334
|
+
"y": 0,
|
|
335
|
+
"given": "a released version of the API",
|
|
336
|
+
"when": "its contract is fetched from the stable URL and compared with what the release serves",
|
|
337
|
+
"then": "the two match, operation by operation and field by field"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"id": "sc-compat",
|
|
341
|
+
"type": "scenario",
|
|
342
|
+
"label": "Breaking change refused",
|
|
343
|
+
"x": 520,
|
|
344
|
+
"y": 130,
|
|
345
|
+
"given": "a pull request that renames a response field of a released version",
|
|
346
|
+
"when": "the contract check compares it with the last release",
|
|
347
|
+
"then": "the check fails, and passes once the rename is in a new major version",
|
|
348
|
+
"hubWhen": {
|
|
349
|
+
"CHANGE": [
|
|
350
|
+
"additive"
|
|
351
|
+
],
|
|
352
|
+
"VERSIONING": [
|
|
353
|
+
"path",
|
|
354
|
+
"header"
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"id": "sc-path",
|
|
360
|
+
"type": "scenario",
|
|
361
|
+
"label": "Two versions side by side",
|
|
362
|
+
"x": 520,
|
|
363
|
+
"y": 260,
|
|
364
|
+
"given": "major versions 1 and 2 served",
|
|
365
|
+
"when": "a caller calls the same operation under /v1/ and /v2/",
|
|
366
|
+
"then": "each answers in its own shape, and releasing a third major version needs version 1 retired first",
|
|
367
|
+
"hubWhen": {
|
|
368
|
+
"CHANGE": [
|
|
369
|
+
"additive"
|
|
370
|
+
],
|
|
371
|
+
"VERSIONING": [
|
|
372
|
+
"path"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"id": "sc-header",
|
|
378
|
+
"type": "scenario",
|
|
379
|
+
"label": "Missing version refused",
|
|
380
|
+
"x": 520,
|
|
381
|
+
"y": 390,
|
|
382
|
+
"given": "versions 2025-01-01 and 2026-01-01 served",
|
|
383
|
+
"when": "a request comes without Api-Version, one with 2024-01-01 and one with 2026-01-01",
|
|
384
|
+
"then": "the first two get 400 listing the served versions; the third is answered with Api-Version: 2026-01-01",
|
|
385
|
+
"hubWhen": {
|
|
386
|
+
"CHANGE": [
|
|
387
|
+
"additive"
|
|
388
|
+
],
|
|
389
|
+
"VERSIONING": [
|
|
390
|
+
"header"
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "sc-versionless",
|
|
396
|
+
"type": "scenario",
|
|
397
|
+
"label": "Used field kept",
|
|
398
|
+
"x": 520,
|
|
399
|
+
"y": 520,
|
|
400
|
+
"given": "a field deprecated {{SUNSET_MONTHS}} months ago that one caller used yesterday",
|
|
401
|
+
"when": "a pull request removes it",
|
|
402
|
+
"then": "the check fails and names the caller; with {{USAGE_DAYS}} days without a call it passes",
|
|
403
|
+
"hubWhen": {
|
|
404
|
+
"CHANGE": [
|
|
405
|
+
"additive"
|
|
406
|
+
],
|
|
407
|
+
"VERSIONING": [
|
|
408
|
+
"none"
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": "sc-sunset",
|
|
414
|
+
"type": "scenario",
|
|
415
|
+
"label": "Deprecation carries a date",
|
|
416
|
+
"x": 520,
|
|
417
|
+
"y": 650,
|
|
418
|
+
"given": "an operation deprecated today",
|
|
419
|
+
"when": "a caller calls it",
|
|
420
|
+
"then": "the answer carries Deprecation with today's date and Sunset at least {{SUNSET_MONTHS}} months later, and the operation still works",
|
|
421
|
+
"hubWhen": {
|
|
422
|
+
"CHANGE": [
|
|
423
|
+
"additive"
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"id": "sc-usage",
|
|
429
|
+
"type": "scenario",
|
|
430
|
+
"label": "Laggards identified",
|
|
431
|
+
"x": 520,
|
|
432
|
+
"y": 780,
|
|
433
|
+
"given": "a deprecated operation called by two systems",
|
|
434
|
+
"when": "the usage report for the last 7 days is read",
|
|
435
|
+
"then": "it lists both systems with their daily call counts",
|
|
436
|
+
"hubWhen": {
|
|
437
|
+
"CHANGE": [
|
|
438
|
+
"additive"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "sc-instep",
|
|
444
|
+
"type": "scenario",
|
|
445
|
+
"label": "Callers built together",
|
|
446
|
+
"x": 520,
|
|
447
|
+
"y": 910,
|
|
448
|
+
"given": "a pull request that renames a field of the contract",
|
|
449
|
+
"when": "the pipeline runs",
|
|
450
|
+
"then": "every caller of the field is built and tested against the change in the same pipeline, and the release ships them together",
|
|
451
|
+
"hubWhen": {
|
|
452
|
+
"CHANGE": [
|
|
453
|
+
"instep"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"id": "sc-pact",
|
|
459
|
+
"type": "scenario",
|
|
460
|
+
"label": "Break caught before deploy",
|
|
461
|
+
"x": 520,
|
|
462
|
+
"y": 1040,
|
|
463
|
+
"given": "a caller whose contract reads the field \"total\"",
|
|
464
|
+
"when": "a build of the API drops \"total\" and asks to deploy",
|
|
465
|
+
"then": "the verification fails and the deployment is blocked",
|
|
466
|
+
"hubWhen": {
|
|
467
|
+
"CONTRACT_TESTS": [
|
|
468
|
+
"pact"
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "sc-conformance",
|
|
474
|
+
"type": "scenario",
|
|
475
|
+
"label": "Undocumented answer caught",
|
|
476
|
+
"x": 520,
|
|
477
|
+
"y": 1170,
|
|
478
|
+
"given": "an operation that answers 500 for an empty name, not described in the contract",
|
|
479
|
+
"when": "the conformance tests run on the build",
|
|
480
|
+
"then": "they fail and name the operation and the input",
|
|
481
|
+
"hubWhen": {
|
|
482
|
+
"CONTRACT_TESTS": [
|
|
483
|
+
"conformance"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"id": "adr-version-path",
|
|
489
|
+
"type": "adr",
|
|
490
|
+
"label": "Additive changes, major version in the path",
|
|
491
|
+
"x": 780,
|
|
492
|
+
"y": 0,
|
|
493
|
+
"concern": "api-evolution",
|
|
494
|
+
"status": "accepted",
|
|
495
|
+
"date": "",
|
|
496
|
+
"context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
|
|
497
|
+
"decision": "The API is described in {{FORMAT}}, kept with the code. Released versions change only by adding; a breaking change goes into a new major version under its own path prefix (/v2/, or the package suffix .v2 for Protocol Buffers), served beside the previous one. At most two major versions are served at once. A deprecated version answers with Deprecation and Sunset headers and is served for {{SUNSET_MONTHS}} months; calls to it are counted per caller. Every pull request is diffed against the contract of the last release (oasdiff for OpenAPI, graphql-inspector for GraphQL, buf breaking for Protocol Buffers) and fails on a break. Promises to callers are checked by {{CONTRACT_TESTS}}. Choosing what counts as breaking: Google AIP-180 (source, wire and semantic compatibility).",
|
|
498
|
+
"consequences": "• Callers upgrade when they choose, within {{SUNSET_MONTHS}} months of a deprecation.\n• Two major versions run side by side for a while: twice the routes, tests and documentation.\n• A breaking change costs a whole new major version, so teams batch them and design for adding.\n• Fields and field numbers are never reused for something else.",
|
|
499
|
+
"alternatives": "1. A version header: stable URLs, but the version is hidden from logs and caches.\n2. No versions, field-by-field deprecation: cheaper, but needs usage data for every caller.\n3. Releasing with the callers: simplest, only when every caller is ours.",
|
|
500
|
+
"hubWhen": {
|
|
501
|
+
"CHANGE": [
|
|
502
|
+
"additive"
|
|
503
|
+
],
|
|
504
|
+
"VERSIONING": [
|
|
505
|
+
"path"
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"id": "adr-version-header",
|
|
511
|
+
"type": "adr",
|
|
512
|
+
"label": "Additive changes, version named in a header",
|
|
513
|
+
"x": 780,
|
|
514
|
+
"y": 130,
|
|
515
|
+
"concern": "api-evolution",
|
|
516
|
+
"status": "accepted",
|
|
517
|
+
"date": "",
|
|
518
|
+
"context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
|
|
519
|
+
"decision": "The API is described in {{FORMAT}}, kept with the code. Released versions change only by adding; a breaking change goes into a new version that callers ask for in the Api-Version header (gRPC metadata of the same name for Protocol Buffers). A request without a served version is answered 400; the version served is echoed in the response. At most two major versions are served at once, each translated from one implementation by a version layer at the edge (as Stripe does with dated versions). A deprecated version answers with Deprecation and Sunset headers and is served for {{SUNSET_MONTHS}} months; calls to it are counted per caller. Every pull request is diffed against the last release's contract and fails on a break. Promises to callers are checked by {{CONTRACT_TESTS}}.",
|
|
520
|
+
"consequences": "• URLs and links stay the same across versions.\n• Every caller must send the header; clients that do not are refused, which surfaces them early.\n• Caches and gateways must vary on Api-Version.\n• The version layer is code of its own that has to be tested per version.",
|
|
521
|
+
"alternatives": "1. A major version in the path: visible and easy to route, but URLs change with every major version.\n2. A query parameter (api-version, as Azure does): visible in logs, but easy to drop when links are copied.\n3. No versions, field-by-field deprecation.",
|
|
522
|
+
"hubWhen": {
|
|
523
|
+
"CHANGE": [
|
|
524
|
+
"additive"
|
|
525
|
+
],
|
|
526
|
+
"VERSIONING": [
|
|
527
|
+
"header"
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"id": "adr-versionless",
|
|
533
|
+
"type": "adr",
|
|
534
|
+
"label": "One version, deprecated field by field",
|
|
535
|
+
"x": 780,
|
|
536
|
+
"y": 260,
|
|
537
|
+
"concern": "api-evolution",
|
|
538
|
+
"status": "accepted",
|
|
539
|
+
"date": "",
|
|
540
|
+
"context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves.",
|
|
541
|
+
"decision": "The API is described in {{FORMAT}}, kept with the code, and has a single version. It changes only by adding; an element to go is marked deprecated in the contract (@deprecated in GraphQL, deprecated: true in OpenAPI, deprecated = true in Protocol Buffers) with Deprecation and Sunset headers, and is removed only after {{SUNSET_MONTHS}} months and {{USAGE_DAYS}} days without a call, as the usage counts per caller show. Every pull request is diffed against the last release's contract (oasdiff, graphql-inspector or buf breaking) and fails on a removal the usage data does not allow. Promises to callers are checked by {{CONTRACT_TESTS}}. Choose it over versions when the API is GraphQL or you can see every caller's usage; prefer versions for public APIs whose callers you cannot see.",
|
|
542
|
+
"consequences": "• Callers never migrate between versions; they only stop using what is deprecated.\n• Usage per caller and field has to be collected and kept, or nothing can ever be removed.\n• A change of meaning cannot be made in place: it needs a new field with a new name.",
|
|
543
|
+
"alternatives": "1. A major version in the path or a header: lets breaking changes happen in bulk, at the cost of running versions side by side.\n2. Releasing with the callers: only when every caller is ours.",
|
|
544
|
+
"hubWhen": {
|
|
545
|
+
"CHANGE": [
|
|
546
|
+
"additive"
|
|
547
|
+
],
|
|
548
|
+
"VERSIONING": [
|
|
549
|
+
"none"
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "adr-instep",
|
|
555
|
+
"type": "adr",
|
|
556
|
+
"label": "API released in step with its callers",
|
|
557
|
+
"x": 780,
|
|
558
|
+
"y": 390,
|
|
559
|
+
"concern": "api-evolution",
|
|
560
|
+
"status": "accepted",
|
|
561
|
+
"date": "",
|
|
562
|
+
"context": "Other systems call this element through its API, and they are built and released by other people on their own schedule. The forces: a renamed field, a new required input, a narrowed type or a changed error code breaks a caller that cannot change on the same day; without a machine-readable contract nobody can tell which change breaks what, so breaks are found in production; every version kept alive costs code, tests and attention; callers have to hear that something is going away early enough to move, and with a date they can plan for; and the contract callers read must be what the API really serves. Here every caller is ours, built in the same repository or release train, and no old client stays installed.",
|
|
563
|
+
"decision": "The API is described in {{FORMAT}}, kept with the code, and has no versions: a change of the contract, breaking or not, is released together with every caller that uses it. The callers depend on the contract inside the workspace, never on a published copy, so the build graph (Nx affected, Turborepo, Bazel) builds and tests each caller of a changed contract in the same pipeline. Promises to callers are checked by {{CONTRACT_TESTS}}. An outside caller (a partner, an installed mobile app, another team's release) needs this decision superseded by additive changes first.",
|
|
564
|
+
"consequences": "• No versions to keep, no sunset to wait for.\n• Every change of the contract rebuilds and retests all its callers; the pipeline is as slow as the slowest caller.\n• The first outside caller makes this decision wrong overnight; it has to be visible when one arrives.",
|
|
565
|
+
"alternatives": "1. Additive changes with a version in the path or a header: needed as soon as one caller is released on its own.\n2. A single version deprecated field by field: no lockstep releases, but usage tracking.",
|
|
566
|
+
"hubWhen": {
|
|
567
|
+
"CHANGE": [
|
|
568
|
+
"instep"
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"id": "ff-oasdiff",
|
|
574
|
+
"type": "fitness-fn",
|
|
575
|
+
"label": "OpenAPI break check",
|
|
576
|
+
"x": 1040,
|
|
577
|
+
"y": 0,
|
|
578
|
+
"category": "structural",
|
|
579
|
+
"threshold": "0 breaking changes (oasdiff level ERR) between the last release's contract and the pull request, outside a new major version",
|
|
580
|
+
"description": "In every pull request, oasdiff compares the OpenAPI document with the one of the last release tag and fails on any change it rates as breaking (removed or renamed operations and fields, new required inputs, narrowed types, removed enum values).\n\nTool: oasdiff\n\n```yaml\n# .github/workflows/api-contract.yml (a job step)\n- name: No breaking API changes\n run: |\n git fetch --tags\n git show \"$(git describe --tags --abbrev=0)\":api/openapi.yaml > /tmp/base.yaml\n docker run --rm -v /tmp:/base -v \"$PWD\":/rev tufin/oasdiff \\\n breaking /base/base.yaml /rev/api/openapi.yaml --fail-on ERR\n```",
|
|
581
|
+
"hubWhen": {
|
|
582
|
+
"FORMAT": [
|
|
583
|
+
"openapi"
|
|
584
|
+
],
|
|
585
|
+
"CHANGE": [
|
|
586
|
+
"additive"
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "ff-graphql-inspector",
|
|
592
|
+
"type": "fitness-fn",
|
|
593
|
+
"label": "GraphQL break check",
|
|
594
|
+
"x": 1040,
|
|
595
|
+
"y": 130,
|
|
596
|
+
"category": "structural",
|
|
597
|
+
"threshold": "0 breaking changes between the last release's schema and the pull request; a field is removed only once deprecated",
|
|
598
|
+
"description": "In every pull request, graphql-inspector diffs the schema with the one on the main branch and fails on a breaking change (a removed field or type, a changed argument, a nullable field made non-null on input).\n\nTool: graphql-inspector\n\n```yaml\n# .github/workflows/api-contract.yml (a job step)\n- name: No breaking schema changes\n run: npx @graphql-inspector/cli diff 'git:origin/main:schema.graphql' schema.graphql\n```",
|
|
599
|
+
"hubWhen": {
|
|
600
|
+
"FORMAT": [
|
|
601
|
+
"graphql"
|
|
602
|
+
],
|
|
603
|
+
"CHANGE": [
|
|
604
|
+
"additive"
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"id": "ff-buf",
|
|
610
|
+
"type": "fitness-fn",
|
|
611
|
+
"label": "Protobuf break check",
|
|
612
|
+
"x": 1040,
|
|
613
|
+
"y": 260,
|
|
614
|
+
"category": "structural",
|
|
615
|
+
"threshold": "0 breaking changes (buf rule set FILE) against the main branch; 0 lint findings, PACKAGE_VERSION_SUFFIX included",
|
|
616
|
+
"description": "buf lint requires a version suffix on every package, and buf breaking compares the .proto files with the main branch, failing on a removed or renumbered field, a changed type or a removed RPC.\n\nTool: buf breaking\n\n```yaml\n# buf.yaml\nversion: v2\nlint:\n use: [STANDARD] # includes PACKAGE_VERSION_SUFFIX: acme.orders.v1\nbreaking:\n use: [FILE]\n# CI step:\n# buf lint && buf breaking --against '.git#branch=main'\n```",
|
|
617
|
+
"hubWhen": {
|
|
618
|
+
"FORMAT": [
|
|
619
|
+
"protobuf"
|
|
620
|
+
],
|
|
621
|
+
"CHANGE": [
|
|
622
|
+
"additive"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"id": "ff-sunset",
|
|
628
|
+
"type": "fitness-fn",
|
|
629
|
+
"label": "Deprecations carry a sunset",
|
|
630
|
+
"x": 1040,
|
|
631
|
+
"y": 390,
|
|
632
|
+
"category": "structural",
|
|
633
|
+
"threshold": "Every operation marked deprecated in the contract answers with a Deprecation header and a Sunset date at least {{SUNSET_MONTHS}} months after it; 0 without",
|
|
634
|
+
"description": "A test reads the operations marked deprecated from the contract (not from a list kept by hand), calls each and checks the Deprecation (RFC 9745) and Sunset (RFC 8594) headers. For gRPC the same test reads the response metadata.\n\nTool: Vitest with supertest (or the test runner and HTTP client of your stack)\n\n```ts\nimport { readFileSync } from 'node:fs'\nimport { parse } from 'yaml'\nimport request from 'supertest'\nimport { app } from '../src/app'\n\nconst SUNSET_MONTHS = {{SUNSET_MONTHS}}\nconst spec = parse(readFileSync('api/openapi.yaml', 'utf8'))\nconst deprecated = Object.entries(spec.paths).flatMap(([path, ops]) =>\n Object.entries(ops as Record<string, { deprecated?: boolean; 'x-example'?: string }>)\n .filter(([, op]) => op.deprecated)\n .map(([method, op]) => ({ method, path: op['x-example'] ?? path })))\n\ndescribe.each(deprecated)('$method $path', ({ method, path }) => {\n it('announces its deprecation and a sunset far enough away', async () => {\n const res = await request(app)[method](path)\n expect(res.headers.deprecation).toMatch(/^@\\d+$/) // RFC 9745: @<epoch seconds>\n const from = new Date(Number(res.headers.deprecation.slice(1)) * 1000)\n from.setMonth(from.getMonth() + SUNSET_MONTHS)\n expect(Date.parse(res.headers.sunset)).toBeGreaterThanOrEqual(from.getTime()) // RFC 8594\n })\n})\n```",
|
|
635
|
+
"hubWhen": {
|
|
636
|
+
"CHANGE": [
|
|
637
|
+
"additive"
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"id": "ff-pact",
|
|
643
|
+
"type": "fitness-fn",
|
|
644
|
+
"label": "Caller contracts verified",
|
|
645
|
+
"x": 1040,
|
|
646
|
+
"y": 520,
|
|
647
|
+
"category": "process",
|
|
648
|
+
"threshold": "100 % of the callers' pacts for the main branch and every deployed version verify on each build; can-i-deploy answers yes before every deployment",
|
|
649
|
+
"description": "Every build of the API fetches the pacts of its callers from the Pact Broker and replays them against the running API, publishing the result; the deployment step asks can-i-deploy and stops on no.\n\nTool: Pact (pact-js Verifier, Pact Broker can-i-deploy)\n\n```ts\nimport { Verifier } from '@pact-foundation/pact'\n\nit('honours every caller\\'s pact', () =>\n new Verifier({\n provider: 'order-api',\n providerBaseUrl: 'http://localhost:8080',\n pactBrokerUrl: process.env.PACT_BROKER_BASE_URL,\n consumerVersionSelectors: [{ mainBranch: true }, { deployedOrReleased: true }],\n publishVerificationResult: true,\n providerVersion: process.env.GIT_SHA,\n }).verifyProvider())\n\n// before deploying:\n// npx pact-broker can-i-deploy --pacticipant order-api --version \"$GIT_SHA\" --to-environment production\n```",
|
|
650
|
+
"hubWhen": {
|
|
651
|
+
"CONTRACT_TESTS": [
|
|
652
|
+
"pact"
|
|
653
|
+
]
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"id": "ff-conformance",
|
|
658
|
+
"type": "fitness-fn",
|
|
659
|
+
"label": "API conforms to contract",
|
|
660
|
+
"x": 1040,
|
|
661
|
+
"y": 650,
|
|
662
|
+
"category": "structural",
|
|
663
|
+
"threshold": "0 answers whose status code, headers or body the contract does not describe, over every operation, on each build",
|
|
664
|
+
"description": "On every build, Schemathesis generates calls for each operation of the published contract (OpenAPI or GraphQL), runs them against a running instance and fails on an answer the contract does not allow or on a server error. For gRPC the generated server stubs make the build fail instead.\n\nTool: Schemathesis\n\n```yaml\n# .github/workflows/api-contract.yml (after the API is started)\n- name: The running API conforms to its contract\n uses: schemathesis/action@v1\n with:\n schema: 'http://localhost:8080/openapi.json' # or http://localhost:8080/graphql\n```",
|
|
665
|
+
"hubWhen": {
|
|
666
|
+
"CONTRACT_TESTS": [
|
|
667
|
+
"conformance"
|
|
668
|
+
]
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"id": "ff-instep",
|
|
673
|
+
"type": "fitness-fn",
|
|
674
|
+
"label": "Callers built with contract",
|
|
675
|
+
"x": 1040,
|
|
676
|
+
"y": 780,
|
|
677
|
+
"category": "process",
|
|
678
|
+
"threshold": "Every caller of the contract is built and tested in the pipeline of each change to it; 0 callers depend on a published copy of the contract",
|
|
679
|
+
"description": "The callers depend on the contract project inside the workspace, so the build graph puts each of them in the affected set of a change to the contract; a module-boundary rule fails the lint when a caller imports a published client package instead.\n\nTool: Nx (nx affected, @nx/enforce-module-boundaries)\n\n```yaml\n# .github/workflows/ci.yml\n- run: npx nx affected -t lint test e2e --base=origin/main\n# eslint.config: callers may use the contract only from the workspace\n# '@nx/enforce-module-boundaries': ['error', {\n# banTransitiveDependencies: true,\n# depConstraints: [{ sourceTag: 'type:caller', onlyDependOnLibsWithTags: ['type:contract', 'type:lib'] }],\n# }]\n```",
|
|
680
|
+
"hubWhen": {
|
|
681
|
+
"CHANGE": [
|
|
682
|
+
"instep"
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"relations": [
|
|
688
|
+
{
|
|
689
|
+
"id": "req-contract--derives--need",
|
|
690
|
+
"sourceId": "req-contract",
|
|
691
|
+
"targetId": "need",
|
|
692
|
+
"relationType": "derives"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"id": "req-compat--derives--need",
|
|
696
|
+
"sourceId": "req-compat",
|
|
697
|
+
"targetId": "need",
|
|
698
|
+
"relationType": "derives"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"id": "req-path--derives--need",
|
|
702
|
+
"sourceId": "req-path",
|
|
703
|
+
"targetId": "need",
|
|
704
|
+
"relationType": "derives"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"id": "req-header--derives--need",
|
|
708
|
+
"sourceId": "req-header",
|
|
709
|
+
"targetId": "need",
|
|
710
|
+
"relationType": "derives"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"id": "req-versionless--derives--need",
|
|
714
|
+
"sourceId": "req-versionless",
|
|
715
|
+
"targetId": "need",
|
|
716
|
+
"relationType": "derives"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"id": "req-sunset--derives--need",
|
|
720
|
+
"sourceId": "req-sunset",
|
|
721
|
+
"targetId": "need",
|
|
722
|
+
"relationType": "derives"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"id": "req-usage--derives--need",
|
|
726
|
+
"sourceId": "req-usage",
|
|
727
|
+
"targetId": "need",
|
|
728
|
+
"relationType": "derives"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": "req-instep--derives--need",
|
|
732
|
+
"sourceId": "req-instep",
|
|
733
|
+
"targetId": "need",
|
|
734
|
+
"relationType": "derives"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"id": "req-pact--derives--need",
|
|
738
|
+
"sourceId": "req-pact",
|
|
739
|
+
"targetId": "need",
|
|
740
|
+
"relationType": "derives"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"id": "req-conformance--derives--need",
|
|
744
|
+
"sourceId": "req-conformance",
|
|
745
|
+
"targetId": "need",
|
|
746
|
+
"relationType": "derives"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"id": "sc-contract--verifies--req-contract",
|
|
750
|
+
"sourceId": "sc-contract",
|
|
751
|
+
"targetId": "req-contract",
|
|
752
|
+
"relationType": "verifies"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"id": "sc-compat--verifies--req-compat",
|
|
756
|
+
"sourceId": "sc-compat",
|
|
757
|
+
"targetId": "req-compat",
|
|
758
|
+
"relationType": "verifies"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"id": "sc-path--verifies--req-path",
|
|
762
|
+
"sourceId": "sc-path",
|
|
763
|
+
"targetId": "req-path",
|
|
764
|
+
"relationType": "verifies"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"id": "sc-header--verifies--req-header",
|
|
768
|
+
"sourceId": "sc-header",
|
|
769
|
+
"targetId": "req-header",
|
|
770
|
+
"relationType": "verifies"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"id": "sc-versionless--verifies--req-versionless",
|
|
774
|
+
"sourceId": "sc-versionless",
|
|
775
|
+
"targetId": "req-versionless",
|
|
776
|
+
"relationType": "verifies"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"id": "sc-sunset--verifies--req-sunset",
|
|
780
|
+
"sourceId": "sc-sunset",
|
|
781
|
+
"targetId": "req-sunset",
|
|
782
|
+
"relationType": "verifies"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"id": "sc-usage--verifies--req-usage",
|
|
786
|
+
"sourceId": "sc-usage",
|
|
787
|
+
"targetId": "req-usage",
|
|
788
|
+
"relationType": "verifies"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "sc-instep--verifies--req-instep",
|
|
792
|
+
"sourceId": "sc-instep",
|
|
793
|
+
"targetId": "req-instep",
|
|
794
|
+
"relationType": "verifies"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": "sc-pact--verifies--req-pact",
|
|
798
|
+
"sourceId": "sc-pact",
|
|
799
|
+
"targetId": "req-pact",
|
|
800
|
+
"relationType": "verifies"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"id": "sc-conformance--verifies--req-conformance",
|
|
804
|
+
"sourceId": "sc-conformance",
|
|
805
|
+
"targetId": "req-conformance",
|
|
806
|
+
"relationType": "verifies"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"id": "ff-oasdiff--implements--adr-version-path",
|
|
810
|
+
"sourceId": "ff-oasdiff",
|
|
811
|
+
"targetId": "adr-version-path",
|
|
812
|
+
"relationType": "implements"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"id": "ff-oasdiff--implements--adr-version-header",
|
|
816
|
+
"sourceId": "ff-oasdiff",
|
|
817
|
+
"targetId": "adr-version-header",
|
|
818
|
+
"relationType": "implements"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"id": "ff-oasdiff--implements--adr-versionless",
|
|
822
|
+
"sourceId": "ff-oasdiff",
|
|
823
|
+
"targetId": "adr-versionless",
|
|
824
|
+
"relationType": "implements"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"id": "ff-graphql-inspector--implements--adr-version-path",
|
|
828
|
+
"sourceId": "ff-graphql-inspector",
|
|
829
|
+
"targetId": "adr-version-path",
|
|
830
|
+
"relationType": "implements"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"id": "ff-graphql-inspector--implements--adr-version-header",
|
|
834
|
+
"sourceId": "ff-graphql-inspector",
|
|
835
|
+
"targetId": "adr-version-header",
|
|
836
|
+
"relationType": "implements"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"id": "ff-graphql-inspector--implements--adr-versionless",
|
|
840
|
+
"sourceId": "ff-graphql-inspector",
|
|
841
|
+
"targetId": "adr-versionless",
|
|
842
|
+
"relationType": "implements"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"id": "ff-buf--implements--adr-version-path",
|
|
846
|
+
"sourceId": "ff-buf",
|
|
847
|
+
"targetId": "adr-version-path",
|
|
848
|
+
"relationType": "implements"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "ff-buf--implements--adr-version-header",
|
|
852
|
+
"sourceId": "ff-buf",
|
|
853
|
+
"targetId": "adr-version-header",
|
|
854
|
+
"relationType": "implements"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "ff-buf--implements--adr-versionless",
|
|
858
|
+
"sourceId": "ff-buf",
|
|
859
|
+
"targetId": "adr-versionless",
|
|
860
|
+
"relationType": "implements"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "ff-sunset--implements--adr-version-path",
|
|
864
|
+
"sourceId": "ff-sunset",
|
|
865
|
+
"targetId": "adr-version-path",
|
|
866
|
+
"relationType": "implements"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "ff-sunset--implements--adr-version-header",
|
|
870
|
+
"sourceId": "ff-sunset",
|
|
871
|
+
"targetId": "adr-version-header",
|
|
872
|
+
"relationType": "implements"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "ff-sunset--implements--adr-versionless",
|
|
876
|
+
"sourceId": "ff-sunset",
|
|
877
|
+
"targetId": "adr-versionless",
|
|
878
|
+
"relationType": "implements"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"id": "ff-pact--implements--adr-version-path",
|
|
882
|
+
"sourceId": "ff-pact",
|
|
883
|
+
"targetId": "adr-version-path",
|
|
884
|
+
"relationType": "implements"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "ff-pact--implements--adr-version-header",
|
|
888
|
+
"sourceId": "ff-pact",
|
|
889
|
+
"targetId": "adr-version-header",
|
|
890
|
+
"relationType": "implements"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"id": "ff-pact--implements--adr-versionless",
|
|
894
|
+
"sourceId": "ff-pact",
|
|
895
|
+
"targetId": "adr-versionless",
|
|
896
|
+
"relationType": "implements"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "ff-pact--implements--adr-instep",
|
|
900
|
+
"sourceId": "ff-pact",
|
|
901
|
+
"targetId": "adr-instep",
|
|
902
|
+
"relationType": "implements"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "ff-conformance--implements--adr-version-path",
|
|
906
|
+
"sourceId": "ff-conformance",
|
|
907
|
+
"targetId": "adr-version-path",
|
|
908
|
+
"relationType": "implements"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"id": "ff-conformance--implements--adr-version-header",
|
|
912
|
+
"sourceId": "ff-conformance",
|
|
913
|
+
"targetId": "adr-version-header",
|
|
914
|
+
"relationType": "implements"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"id": "ff-conformance--implements--adr-versionless",
|
|
918
|
+
"sourceId": "ff-conformance",
|
|
919
|
+
"targetId": "adr-versionless",
|
|
920
|
+
"relationType": "implements"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "ff-conformance--implements--adr-instep",
|
|
924
|
+
"sourceId": "ff-conformance",
|
|
925
|
+
"targetId": "adr-instep",
|
|
926
|
+
"relationType": "implements"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"id": "ff-instep--implements--adr-instep",
|
|
930
|
+
"sourceId": "ff-instep",
|
|
931
|
+
"targetId": "adr-instep",
|
|
932
|
+
"relationType": "implements"
|
|
933
|
+
}
|
|
934
|
+
]
|
|
935
|
+
}
|