@radicaltools/mcp 0.3.4 → 0.5.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 +18 -8
- package/dist/{chunk-JTRIDVBS.js → chunk-DSR2PAMW.js} +154 -48
- package/dist/chunk-ULUOEM3X.js +43 -0
- package/dist/dist-4NNGZXOU.js +219 -0
- package/dist/{elkLayout-ILGQJOJF.js → elkLayout-YXJWF5QP.js} +2 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +24 -12
- package/dist/hub-catalogue/concern/concern-api-errors.radical +26 -13
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +26 -13
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +28 -14
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +24 -12
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +26 -13
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +26 -13
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +26 -13
- package/dist/hub-catalogue/concern/concern-authentication.radical +18 -9
- package/dist/hub-catalogue/concern/concern-authorization.radical +34 -17
- package/dist/hub-catalogue/concern/concern-availability.radical +20 -10
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +16 -8
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +30 -15
- package/dist/hub-catalogue/concern/concern-caching.radical +28 -14
- package/dist/hub-catalogue/concern/concern-capacity.radical +18 -9
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +32 -16
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +30 -15
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +32 -16
- package/dist/hub-catalogue/concern/concern-code-style.radical +24 -12
- package/dist/hub-catalogue/concern/concern-communication-style.radical +28 -14
- package/dist/hub-catalogue/concern/concern-data-classification.radical +20 -10
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +20 -10
- package/dist/hub-catalogue/concern/concern-data-store.radical +24 -12
- package/dist/hub-catalogue/concern/concern-decomposition.radical +28 -14
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +26 -13
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +22 -11
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +28 -14
- package/dist/hub-catalogue/concern/concern-deployment.radical +24 -12
- package/dist/hub-catalogue/concern/concern-encryption.radical +28 -14
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +28 -14
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +26 -13
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +28 -14
- package/dist/hub-catalogue/concern/concern-incident-management.radical +26 -13
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +34 -17
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +26 -13
- package/dist/hub-catalogue/concern/concern-messaging.radical +18 -9
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +18 -9
- package/dist/hub-catalogue/concern/concern-observability.radical +22 -11
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +28 -14
- package/dist/hub-catalogue/concern/concern-personal-data.radical +42 -21
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +24 -12
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +30 -15
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +28 -14
- package/dist/hub-catalogue/concern/concern-retention.radical +28 -14
- package/dist/hub-catalogue/concern/concern-secrets.radical +32 -16
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +28 -14
- package/dist/hub-catalogue/concern/concern-secure-development.radical +26 -13
- package/dist/hub-catalogue/concern/concern-security-detection.radical +22 -11
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +28 -14
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +30 -15
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +26 -13
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +26 -13
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +26 -13
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +26 -13
- package/dist/index.js +17408 -1104
- package/dist/pdfjs-7X3VKNRD.js +33203 -0
- package/dist/tree-sitter/tree-sitter-c-sharp.wasm +0 -0
- package/dist/tree-sitter/tree-sitter-go.wasm +0 -0
- package/dist/tree-sitter/tree-sitter-java.wasm +0 -0
- package/dist/tree-sitter/tree-sitter.cjs +4075 -0
- package/dist/tree-sitter/tree-sitter.wasm +0 -0
- package/package.json +6 -2
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_define_RADICAL_BUILD
|
|
3
|
+
} from "./chunk-ULUOEM3X.js";
|
|
4
|
+
|
|
5
|
+
// ../../packages/assay/node_modules/unpdf/dist/index.mjs
|
|
6
|
+
init_define_RADICAL_BUILD();
|
|
7
|
+
var resolvedModule;
|
|
8
|
+
var isNode = globalThis.process?.release?.name === "node";
|
|
9
|
+
var isBrowser = typeof window !== "undefined";
|
|
10
|
+
async function getDocumentProxy(data, options = {}) {
|
|
11
|
+
const { getDocument } = await getResolvedPDFJS();
|
|
12
|
+
const pdf = await getDocument({
|
|
13
|
+
data,
|
|
14
|
+
isEvalSupported: false,
|
|
15
|
+
// See: https://github.com/mozilla/pdf.js/issues/4244#issuecomment-1479534301
|
|
16
|
+
useSystemFonts: true,
|
|
17
|
+
...options
|
|
18
|
+
}).promise;
|
|
19
|
+
return pdf;
|
|
20
|
+
}
|
|
21
|
+
async function getResolvedPDFJS() {
|
|
22
|
+
if (!resolvedModule) {
|
|
23
|
+
await resolvePDFJSImports();
|
|
24
|
+
}
|
|
25
|
+
return resolvedModule;
|
|
26
|
+
}
|
|
27
|
+
async function resolvePDFJSImports(pdfjsResolver, { force = false } = {}) {
|
|
28
|
+
if (resolvedModule && !force) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (pdfjsResolver) {
|
|
32
|
+
try {
|
|
33
|
+
resolvedModule = await interopDefault(pdfjsResolver());
|
|
34
|
+
if (resolvedModule && "resolvePDFJS" in resolvedModule) {
|
|
35
|
+
resolvedModule = await resolvedModule.resolvePDFJS();
|
|
36
|
+
}
|
|
37
|
+
return;
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(error);
|
|
40
|
+
throw new Error("Resolving failed. Please check the provided configuration.");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const { resolvePDFJS } = await import("./pdfjs-7X3VKNRD.js");
|
|
45
|
+
resolvedModule = await resolvePDFJS();
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error(error);
|
|
48
|
+
throw new Error("PDF.js is not available. Please add the package as a dependency.");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function isPDFDocumentProxy(data) {
|
|
52
|
+
return typeof data === "object" && data !== null && "_pdfInfo" in data;
|
|
53
|
+
}
|
|
54
|
+
async function interopDefault(m) {
|
|
55
|
+
const resolved = await m;
|
|
56
|
+
return resolved.default || resolved;
|
|
57
|
+
}
|
|
58
|
+
async function extractImages$1(data, pageNumber) {
|
|
59
|
+
const pdf = isPDFDocumentProxy(data) ? data : await getDocumentProxy(data);
|
|
60
|
+
if (pageNumber < 1 || pageNumber > pdf.numPages) {
|
|
61
|
+
throw new Error(`Invalid page number. Must be between 1 and ${pdf.numPages}.`);
|
|
62
|
+
}
|
|
63
|
+
const page = await pdf.getPage(pageNumber);
|
|
64
|
+
const operatorList = await page.getOperatorList();
|
|
65
|
+
const { OPS } = await getResolvedPDFJS();
|
|
66
|
+
const images = [];
|
|
67
|
+
for (let i = 0; i < operatorList.fnArray.length; i++) {
|
|
68
|
+
const op = operatorList.fnArray[i];
|
|
69
|
+
if (op !== OPS.paintImageXObject) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const imageKey = operatorList.argsArray[i][0];
|
|
73
|
+
const image = await page.objs.get(imageKey);
|
|
74
|
+
if (!image || !image.data || !image.width || !image.height) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const { width, height, data: data2 } = image;
|
|
78
|
+
const calculatedChannels = data2.length / (width * height);
|
|
79
|
+
if (![1, 3, 4].includes(calculatedChannels)) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
const channels = calculatedChannels;
|
|
83
|
+
images.push({
|
|
84
|
+
data: data2,
|
|
85
|
+
width,
|
|
86
|
+
height,
|
|
87
|
+
channels,
|
|
88
|
+
key: imageKey
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return images;
|
|
92
|
+
}
|
|
93
|
+
async function renderPageAsImage$1(data, pageNumber, options = {}) {
|
|
94
|
+
const canvasFactory = await createIsomorphicCanvasFactory(options.canvas);
|
|
95
|
+
const pdf = isPDFDocumentProxy(data) ? data : await getDocumentProxy(data, { canvasFactory });
|
|
96
|
+
const page = await pdf.getPage(pageNumber);
|
|
97
|
+
if (pageNumber < 1 || pageNumber > pdf.numPages) {
|
|
98
|
+
throw new Error(`Invalid page number. Must be between 1 and ${pdf.numPages}.`);
|
|
99
|
+
}
|
|
100
|
+
let outputScale = options.scale || 1;
|
|
101
|
+
let viewport = page.getViewport({ scale: outputScale });
|
|
102
|
+
if (options.width) {
|
|
103
|
+
outputScale = options.width / viewport.width;
|
|
104
|
+
} else if (options.height) {
|
|
105
|
+
outputScale = options.height / viewport.height;
|
|
106
|
+
}
|
|
107
|
+
if (outputScale !== 1 && outputScale > 0) {
|
|
108
|
+
viewport = page.getViewport({ scale: outputScale });
|
|
109
|
+
}
|
|
110
|
+
const ctx = canvasFactory.create(viewport.width, viewport.height);
|
|
111
|
+
await page.render({
|
|
112
|
+
canvasContext: ctx.context,
|
|
113
|
+
viewport
|
|
114
|
+
}).promise;
|
|
115
|
+
const dataUrl = isBrowser ? ctx.canvas.toDataURL() : ctx.canvas.toDataURL();
|
|
116
|
+
const response = await fetch(dataUrl);
|
|
117
|
+
return await response.arrayBuffer();
|
|
118
|
+
}
|
|
119
|
+
async function createIsomorphicCanvasFactory(canvas) {
|
|
120
|
+
const _canvas = canvas ? await interopDefault(canvas()) : void 0;
|
|
121
|
+
return {
|
|
122
|
+
_createCanvas(width, height) {
|
|
123
|
+
if (isBrowser) {
|
|
124
|
+
const canvas2 = document.createElement("canvas");
|
|
125
|
+
canvas2.width = width;
|
|
126
|
+
canvas2.height = height;
|
|
127
|
+
return canvas2;
|
|
128
|
+
}
|
|
129
|
+
if (isNode) {
|
|
130
|
+
if (!_canvas) {
|
|
131
|
+
throw new Error('Failed to resolve "canvas" package.');
|
|
132
|
+
}
|
|
133
|
+
return _canvas.createCanvas(width, height);
|
|
134
|
+
}
|
|
135
|
+
throw new Error("Unsupported environment for canvas creation.");
|
|
136
|
+
},
|
|
137
|
+
create(width, height) {
|
|
138
|
+
const _canvas2 = this._createCanvas(width, height);
|
|
139
|
+
const context = _canvas2.getContext(
|
|
140
|
+
"2d"
|
|
141
|
+
);
|
|
142
|
+
return {
|
|
143
|
+
canvas: _canvas2,
|
|
144
|
+
context
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
reset(ctx, width, height) {
|
|
148
|
+
if (ctx.canvas) {
|
|
149
|
+
ctx.canvas.width = width;
|
|
150
|
+
ctx.canvas.height = height;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
destroy(ctx) {
|
|
154
|
+
if (ctx.canvas) {
|
|
155
|
+
ctx.canvas.width = 0;
|
|
156
|
+
ctx.canvas.height = 0;
|
|
157
|
+
}
|
|
158
|
+
ctx.canvas = void 0;
|
|
159
|
+
ctx.context = void 0;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
async function getMeta$1(data) {
|
|
164
|
+
const pdf = isPDFDocumentProxy(data) ? data : await getDocumentProxy(data);
|
|
165
|
+
const meta = await pdf.getMetadata();
|
|
166
|
+
return {
|
|
167
|
+
info: meta?.info ?? {},
|
|
168
|
+
metadata: meta?.metadata?.getAll() ?? {}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
async function extractText$1(data, options = {}) {
|
|
172
|
+
const { mergePages = false } = { ...options };
|
|
173
|
+
const pdf = isPDFDocumentProxy(data) ? data : await getDocumentProxy(data);
|
|
174
|
+
const texts = await Promise.all(
|
|
175
|
+
Array.from({ length: pdf.numPages }, (_, i) => getPageText(pdf, i + 1))
|
|
176
|
+
);
|
|
177
|
+
return {
|
|
178
|
+
totalPages: pdf.numPages,
|
|
179
|
+
text: mergePages ? texts.join("\n").replace(/\s+/g, " ") : texts
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
async function getPageText(document2, pageNumber) {
|
|
183
|
+
const page = await document2.getPage(pageNumber);
|
|
184
|
+
const content = await page.getTextContent();
|
|
185
|
+
return content.items.filter((item) => item.str != null).map((item) => item.str + (item.hasEOL ? "\n" : "")).join("");
|
|
186
|
+
}
|
|
187
|
+
async function configureUnPDF(options) {
|
|
188
|
+
const { pdfjs } = { ...options };
|
|
189
|
+
if (pdfjs) {
|
|
190
|
+
await resolvePDFJSImports(pdfjs, { force: true });
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
var getMeta = async (...args) => {
|
|
194
|
+
await resolvePDFJSImports();
|
|
195
|
+
return await getMeta$1(...args);
|
|
196
|
+
};
|
|
197
|
+
var extractText = async (...args) => {
|
|
198
|
+
await resolvePDFJSImports();
|
|
199
|
+
return await extractText$1(...args);
|
|
200
|
+
};
|
|
201
|
+
var extractImages = async (...args) => {
|
|
202
|
+
await resolvePDFJSImports();
|
|
203
|
+
return await extractImages$1(...args);
|
|
204
|
+
};
|
|
205
|
+
var renderPageAsImage = async (...args) => {
|
|
206
|
+
await resolvePDFJSImports();
|
|
207
|
+
return await renderPageAsImage$1(...args);
|
|
208
|
+
};
|
|
209
|
+
export {
|
|
210
|
+
configureUnPDF,
|
|
211
|
+
createIsomorphicCanvasFactory,
|
|
212
|
+
extractImages,
|
|
213
|
+
extractText,
|
|
214
|
+
getDocumentProxy,
|
|
215
|
+
getMeta,
|
|
216
|
+
getResolvedPDFJS,
|
|
217
|
+
renderPageAsImage,
|
|
218
|
+
resolvePDFJSImports
|
|
219
|
+
};
|
|
@@ -842,73 +842,85 @@
|
|
|
842
842
|
"id": "req-paged--derives--need",
|
|
843
843
|
"sourceId": "req-paged",
|
|
844
844
|
"targetId": "need",
|
|
845
|
-
"relationType": "derives"
|
|
845
|
+
"relationType": "derives",
|
|
846
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
846
847
|
},
|
|
847
848
|
{
|
|
848
849
|
"id": "req-token-opaque--derives--need",
|
|
849
850
|
"sourceId": "req-token-opaque",
|
|
850
851
|
"targetId": "need",
|
|
851
|
-
"relationType": "derives"
|
|
852
|
+
"relationType": "derives",
|
|
853
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
852
854
|
},
|
|
853
855
|
{
|
|
854
856
|
"id": "req-token-refused--derives--need",
|
|
855
857
|
"sourceId": "req-token-refused",
|
|
856
858
|
"targetId": "need",
|
|
857
|
-
"relationType": "derives"
|
|
859
|
+
"relationType": "derives",
|
|
860
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
858
861
|
},
|
|
859
862
|
{
|
|
860
863
|
"id": "req-cursor-consistent--derives--need",
|
|
861
864
|
"sourceId": "req-cursor-consistent",
|
|
862
865
|
"targetId": "need",
|
|
863
|
-
"relationType": "derives"
|
|
866
|
+
"relationType": "derives",
|
|
867
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
864
868
|
},
|
|
865
869
|
{
|
|
866
870
|
"id": "req-offset-cap--derives--need",
|
|
867
871
|
"sourceId": "req-offset-cap",
|
|
868
872
|
"targetId": "need",
|
|
869
|
-
"relationType": "derives"
|
|
873
|
+
"relationType": "derives",
|
|
874
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
870
875
|
},
|
|
871
876
|
{
|
|
872
877
|
"id": "req-bounded--derives--need",
|
|
873
878
|
"sourceId": "req-bounded",
|
|
874
879
|
"targetId": "need",
|
|
875
|
-
"relationType": "derives"
|
|
880
|
+
"relationType": "derives",
|
|
881
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
876
882
|
},
|
|
877
883
|
{
|
|
878
884
|
"id": "req-order--derives--need",
|
|
879
885
|
"sourceId": "req-order",
|
|
880
886
|
"targetId": "need",
|
|
881
|
-
"relationType": "derives"
|
|
887
|
+
"relationType": "derives",
|
|
888
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
882
889
|
},
|
|
883
890
|
{
|
|
884
891
|
"id": "req-unknown--derives--need",
|
|
885
892
|
"sourceId": "req-unknown",
|
|
886
893
|
"targetId": "need",
|
|
887
|
-
"relationType": "derives"
|
|
894
|
+
"relationType": "derives",
|
|
895
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
888
896
|
},
|
|
889
897
|
{
|
|
890
898
|
"id": "req-filter--derives--need",
|
|
891
899
|
"sourceId": "req-filter",
|
|
892
900
|
"targetId": "need",
|
|
893
|
-
"relationType": "derives"
|
|
901
|
+
"relationType": "derives",
|
|
902
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
894
903
|
},
|
|
895
904
|
{
|
|
896
905
|
"id": "req-sort--derives--need",
|
|
897
906
|
"sourceId": "req-sort",
|
|
898
907
|
"targetId": "need",
|
|
899
|
-
"relationType": "derives"
|
|
908
|
+
"relationType": "derives",
|
|
909
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
900
910
|
},
|
|
901
911
|
{
|
|
902
912
|
"id": "req-fields--derives--need",
|
|
903
913
|
"sourceId": "req-fields",
|
|
904
914
|
"targetId": "need",
|
|
905
|
-
"relationType": "derives"
|
|
915
|
+
"relationType": "derives",
|
|
916
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
906
917
|
},
|
|
907
918
|
{
|
|
908
919
|
"id": "req-latency--derives--need",
|
|
909
920
|
"sourceId": "req-latency",
|
|
910
921
|
"targetId": "need",
|
|
911
|
-
"relationType": "derives"
|
|
922
|
+
"relationType": "derives",
|
|
923
|
+
"quote": "Callers read collections from this element over HTTP, and the collections grow. Every list has to come back in bounded time and size however large its collection gets, show each item once to a caller who reads it page by page, apply exactly the filters and order the caller asked for or refuse the request, and hand out nothing callers could come to depend on by accident, such as ids or offsets inside a page token. The snippets assume the OpenAPI document at api/openapi.yaml, the application exported from src/app with requests validated against that document, page tokens sealed by src/collections/pageToken, and the tests under tests/ with their fixtures in tests/collections (a seeded /orders collection and a walk helper that reads every page of a list). Names are written in snake_case as Google AIP-158 writes them (page_size, page_token, next_page_token, order_by); where the Resource design pack chose camelCase, read pageSize, pageToken, nextPageToken and orderBy."
|
|
912
924
|
},
|
|
913
925
|
{
|
|
914
926
|
"id": "sc-paged--verifies--req-paged",
|
|
@@ -832,79 +832,92 @@
|
|
|
832
832
|
"id": "req-problem-details--derives--need",
|
|
833
833
|
"sourceId": "req-problem-details",
|
|
834
834
|
"targetId": "need",
|
|
835
|
-
"relationType": "derives"
|
|
835
|
+
"relationType": "derives",
|
|
836
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
836
837
|
},
|
|
837
838
|
{
|
|
838
839
|
"id": "req-microsoft-error--derives--need",
|
|
839
840
|
"sourceId": "req-microsoft-error",
|
|
840
841
|
"targetId": "need",
|
|
841
|
-
"relationType": "derives"
|
|
842
|
+
"relationType": "derives",
|
|
843
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
842
844
|
},
|
|
843
845
|
{
|
|
844
846
|
"id": "req-google-status--derives--need",
|
|
845
847
|
"sourceId": "req-google-status",
|
|
846
848
|
"targetId": "need",
|
|
847
|
-
"relationType": "derives"
|
|
849
|
+
"relationType": "derives",
|
|
850
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
848
851
|
},
|
|
849
852
|
{
|
|
850
853
|
"id": "req-minimal--derives--need",
|
|
851
854
|
"sourceId": "req-minimal",
|
|
852
855
|
"targetId": "need",
|
|
853
|
-
"relationType": "derives"
|
|
856
|
+
"relationType": "derives",
|
|
857
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
854
858
|
},
|
|
855
859
|
{
|
|
856
860
|
"id": "req-correlation--derives--need",
|
|
857
861
|
"sourceId": "req-correlation",
|
|
858
862
|
"targetId": "need",
|
|
859
|
-
"relationType": "derives"
|
|
863
|
+
"relationType": "derives",
|
|
864
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
860
865
|
},
|
|
861
866
|
{
|
|
862
867
|
"id": "req-caller-text--derives--need",
|
|
863
868
|
"sourceId": "req-caller-text",
|
|
864
869
|
"targetId": "need",
|
|
865
|
-
"relationType": "derives"
|
|
870
|
+
"relationType": "derives",
|
|
871
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
866
872
|
},
|
|
867
873
|
{
|
|
868
874
|
"id": "req-documented--derives--need",
|
|
869
875
|
"sourceId": "req-documented",
|
|
870
876
|
"targetId": "need",
|
|
871
|
-
"relationType": "derives"
|
|
877
|
+
"relationType": "derives",
|
|
878
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
872
879
|
},
|
|
873
880
|
{
|
|
874
881
|
"id": "req-codes--derives--need",
|
|
875
882
|
"sourceId": "req-codes",
|
|
876
883
|
"targetId": "need",
|
|
877
|
-
"relationType": "derives"
|
|
884
|
+
"relationType": "derives",
|
|
885
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
878
886
|
},
|
|
879
887
|
{
|
|
880
888
|
"id": "req-status-only--derives--need",
|
|
881
889
|
"sourceId": "req-status-only",
|
|
882
890
|
"targetId": "need",
|
|
883
|
-
"relationType": "derives"
|
|
891
|
+
"relationType": "derives",
|
|
892
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
884
893
|
},
|
|
885
894
|
{
|
|
886
895
|
"id": "req-validation-all--derives--need",
|
|
887
896
|
"sourceId": "req-validation-all",
|
|
888
897
|
"targetId": "need",
|
|
889
|
-
"relationType": "derives"
|
|
898
|
+
"relationType": "derives",
|
|
899
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
890
900
|
},
|
|
891
901
|
{
|
|
892
902
|
"id": "req-validation-first--derives--need",
|
|
893
903
|
"sourceId": "req-validation-first",
|
|
894
904
|
"targetId": "need",
|
|
895
|
-
"relationType": "derives"
|
|
905
|
+
"relationType": "derives",
|
|
906
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
896
907
|
},
|
|
897
908
|
{
|
|
898
909
|
"id": "req-docs-page--derives--need",
|
|
899
910
|
"sourceId": "req-docs-page",
|
|
900
911
|
"targetId": "need",
|
|
901
|
-
"relationType": "derives"
|
|
912
|
+
"relationType": "derives",
|
|
913
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
902
914
|
},
|
|
903
915
|
{
|
|
904
916
|
"id": "req-docs-identifiers--derives--need",
|
|
905
917
|
"sourceId": "req-docs-identifiers",
|
|
906
918
|
"targetId": "need",
|
|
907
|
-
"relationType": "derives"
|
|
919
|
+
"relationType": "derives",
|
|
920
|
+
"quote": "Every client of this API has to handle its errors in code: tell one failure from another without parsing prose, mark every wrong field for its user, and quote one id to support. That only works if every operation answers errors in one documented shape, with codes that keep their meaning and text written for the caller rather than copied from an exception. The snippets assume one OpenAPI document per API under api/ (api/orders.yaml), the error code catalogue at api/errors/codes.yaml, the error rules in api/style/errors.yaml beside the style ruleset the API style guide pack keeps, the app exported from src/app (an Express app, with test-only routes: GET /__boom throws an unexpected error and GET /__expected an expected one, both with the text in the ERROR_MARK variable), POST /orders validating email, items[].quantity and currency, and the tests under test/ run with NODE_ENV=production."
|
|
908
921
|
},
|
|
909
922
|
{
|
|
910
923
|
"id": "sc-problem-details--verifies--req-problem-details",
|
|
@@ -826,79 +826,92 @@
|
|
|
826
826
|
"id": "req-contract--derives--need",
|
|
827
827
|
"sourceId": "req-contract",
|
|
828
828
|
"targetId": "need",
|
|
829
|
-
"relationType": "derives"
|
|
829
|
+
"relationType": "derives",
|
|
830
|
+
"quote": "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."
|
|
830
831
|
},
|
|
831
832
|
{
|
|
832
833
|
"id": "req-compat--derives--need",
|
|
833
834
|
"sourceId": "req-compat",
|
|
834
835
|
"targetId": "need",
|
|
835
|
-
"relationType": "derives"
|
|
836
|
+
"relationType": "derives",
|
|
837
|
+
"quote": "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."
|
|
836
838
|
},
|
|
837
839
|
{
|
|
838
840
|
"id": "req-path--derives--need",
|
|
839
841
|
"sourceId": "req-path",
|
|
840
842
|
"targetId": "need",
|
|
841
|
-
"relationType": "derives"
|
|
843
|
+
"relationType": "derives",
|
|
844
|
+
"quote": "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."
|
|
842
845
|
},
|
|
843
846
|
{
|
|
844
847
|
"id": "req-header--derives--need",
|
|
845
848
|
"sourceId": "req-header",
|
|
846
849
|
"targetId": "need",
|
|
847
|
-
"relationType": "derives"
|
|
850
|
+
"relationType": "derives",
|
|
851
|
+
"quote": "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."
|
|
848
852
|
},
|
|
849
853
|
{
|
|
850
854
|
"id": "req-header-echo--derives--need",
|
|
851
855
|
"sourceId": "req-header-echo",
|
|
852
856
|
"targetId": "need",
|
|
853
|
-
"relationType": "derives"
|
|
857
|
+
"relationType": "derives",
|
|
858
|
+
"quote": "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."
|
|
854
859
|
},
|
|
855
860
|
{
|
|
856
861
|
"id": "req-versionless--derives--need",
|
|
857
862
|
"sourceId": "req-versionless",
|
|
858
863
|
"targetId": "need",
|
|
859
|
-
"relationType": "derives"
|
|
864
|
+
"relationType": "derives",
|
|
865
|
+
"quote": "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."
|
|
860
866
|
},
|
|
861
867
|
{
|
|
862
868
|
"id": "req-sunset--derives--need",
|
|
863
869
|
"sourceId": "req-sunset",
|
|
864
870
|
"targetId": "need",
|
|
865
|
-
"relationType": "derives"
|
|
871
|
+
"relationType": "derives",
|
|
872
|
+
"quote": "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."
|
|
866
873
|
},
|
|
867
874
|
{
|
|
868
875
|
"id": "req-sunset-graphql--derives--need",
|
|
869
876
|
"sourceId": "req-sunset-graphql",
|
|
870
877
|
"targetId": "need",
|
|
871
|
-
"relationType": "derives"
|
|
878
|
+
"relationType": "derives",
|
|
879
|
+
"quote": "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."
|
|
872
880
|
},
|
|
873
881
|
{
|
|
874
882
|
"id": "req-sunset-protobuf--derives--need",
|
|
875
883
|
"sourceId": "req-sunset-protobuf",
|
|
876
884
|
"targetId": "need",
|
|
877
|
-
"relationType": "derives"
|
|
885
|
+
"relationType": "derives",
|
|
886
|
+
"quote": "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."
|
|
878
887
|
},
|
|
879
888
|
{
|
|
880
889
|
"id": "req-usage--derives--need",
|
|
881
890
|
"sourceId": "req-usage",
|
|
882
891
|
"targetId": "need",
|
|
883
|
-
"relationType": "derives"
|
|
892
|
+
"relationType": "derives",
|
|
893
|
+
"quote": "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."
|
|
884
894
|
},
|
|
885
895
|
{
|
|
886
896
|
"id": "req-pact--derives--need",
|
|
887
897
|
"sourceId": "req-pact",
|
|
888
898
|
"targetId": "need",
|
|
889
|
-
"relationType": "derives"
|
|
899
|
+
"relationType": "derives",
|
|
900
|
+
"quote": "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."
|
|
890
901
|
},
|
|
891
902
|
{
|
|
892
903
|
"id": "req-conformance--derives--need",
|
|
893
904
|
"sourceId": "req-conformance",
|
|
894
905
|
"targetId": "need",
|
|
895
|
-
"relationType": "derives"
|
|
906
|
+
"relationType": "derives",
|
|
907
|
+
"quote": "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."
|
|
896
908
|
},
|
|
897
909
|
{
|
|
898
910
|
"id": "req-conformance-grpc--derives--need",
|
|
899
911
|
"sourceId": "req-conformance-grpc",
|
|
900
912
|
"targetId": "need",
|
|
901
|
-
"relationType": "derives"
|
|
913
|
+
"relationType": "derives",
|
|
914
|
+
"quote": "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."
|
|
902
915
|
},
|
|
903
916
|
{
|
|
904
917
|
"id": "sc-contract--verifies--req-contract",
|