@conduit-client/model 3.19.0 → 3.19.2
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.
|
@@ -66,6 +66,13 @@ declare const specFileConfigs: {
|
|
|
66
66
|
readonly entityPost: "/entity-post";
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
readonly amfEndpointsMissingEndpointType: {
|
|
70
|
+
readonly file: "amf-endpoints-missing-endpoint-type.yaml";
|
|
71
|
+
readonly shapes: {};
|
|
72
|
+
readonly endpoints: {
|
|
73
|
+
readonly entityMissingEndpointType: "/entity/missing-endpoint-type";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
69
76
|
readonly any: {
|
|
70
77
|
readonly file: "any.yaml";
|
|
71
78
|
readonly shapes: {
|
package/dist/v1/index.js
CHANGED
|
@@ -6335,6 +6335,26 @@ ${message}`;
|
|
|
6335
6335
|
}
|
|
6336
6336
|
const config = endpointConfigValidationResult.data;
|
|
6337
6337
|
if (config.onestore === void 0) {
|
|
6338
|
+
for (const op of amfEndpoint.operations) {
|
|
6339
|
+
const opExtensions = extractExtensions$1(op.customDomainProperties);
|
|
6340
|
+
if (opExtensions.onestore !== void 0) {
|
|
6341
|
+
const path2 = amfEndpoint.path.value();
|
|
6342
|
+
const errorMessage = `Path "${path2}" has x-onestore config on its operations but is missing x-onestore.endpoint-type on the path itself.
|
|
6343
|
+
|
|
6344
|
+
Add x-onestore to the path with endpoint-type "aura" or "http":
|
|
6345
|
+
|
|
6346
|
+
${path2}:
|
|
6347
|
+
x-onestore:
|
|
6348
|
+
endpoint-type: aura # or "http" for REST endpoints
|
|
6349
|
+
config:
|
|
6350
|
+
aura:
|
|
6351
|
+
controller: YourControllerName
|
|
6352
|
+
|
|
6353
|
+
If this path should not generate OneStore bindings, remove x-onestore from its operations.`;
|
|
6354
|
+
fileParserLogger.error(amfEndpoint.position.start, errorMessage);
|
|
6355
|
+
throw new Error(errorMessage);
|
|
6356
|
+
}
|
|
6357
|
+
}
|
|
6338
6358
|
return void 0;
|
|
6339
6359
|
}
|
|
6340
6360
|
const endpoint = config.onestore["endpoint-type"] === "aura" ? createAmfAuraEndpoint(
|
|
@@ -14664,6 +14684,27 @@ ${message}`;
|
|
|
14664
14684
|
}
|
|
14665
14685
|
const config = endpointConfigValidationResult.data;
|
|
14666
14686
|
if (config.onestore === void 0) {
|
|
14687
|
+
for (const method of HTTP_METHODS) {
|
|
14688
|
+
const operation = pathItem[method];
|
|
14689
|
+
if (!operation) continue;
|
|
14690
|
+
const opExtensions = extractExtensions(operation);
|
|
14691
|
+
if (opExtensions.onestore !== void 0) {
|
|
14692
|
+
const errorMessage = `Path "${pathStr}" has x-onestore config on its operations but is missing x-onestore.endpoint-type on the path itself.
|
|
14693
|
+
|
|
14694
|
+
Add x-onestore to the path with endpoint-type "aura" or "http":
|
|
14695
|
+
|
|
14696
|
+
${pathStr}:
|
|
14697
|
+
x-onestore:
|
|
14698
|
+
endpoint-type: aura # or "http" for REST endpoints
|
|
14699
|
+
config:
|
|
14700
|
+
aura:
|
|
14701
|
+
controller: YourControllerName
|
|
14702
|
+
|
|
14703
|
+
If this path should not generate OneStore bindings, remove x-onestore from its operations.`;
|
|
14704
|
+
fileParserLogger.error({ line: 0, column: 0 }, errorMessage);
|
|
14705
|
+
throw new Error(errorMessage);
|
|
14706
|
+
}
|
|
14707
|
+
}
|
|
14667
14708
|
return void 0;
|
|
14668
14709
|
}
|
|
14669
14710
|
const endpoint = config.onestore["endpoint-type"] === "aura" ? createSwaggerAuraEndpoint(
|