You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Discovery manifest V3.
I regenerated the discovery manifest using a generator, the documentation for that is in the README.
* Expose all the new service manifest configuration options.
* Make sure that setting the v3 fields will fail discovery when using an old runtime.
// if (field in obj && obj[field] !== undefined) {
455
+
// return this.toErrorResponse(500, `The code uses the new discovery feature '${field}' but the runtime doesn't support it yet. Either remove the usage of this feature, or upgrade the runtime.`);
456
+
// }
457
+
// }
458
+
// return;
459
+
// }
460
+
461
+
constcheckUnsupportedFeature=<Textendsobject>(
462
+
obj: T,
463
+
...fields: Array<keyofT>
464
+
)=>{
465
+
for(constfieldoffields){
466
+
if(fieldinobj&&obj[field]!==undefined){
467
+
returnthis.toErrorResponse(
468
+
500,
469
+
`The code uses the new discovery feature '${String(
470
+
field
471
+
)}' but the runtime doesn't support it yet. Either remove the usage of this feature, or upgrade the runtime.`
472
+
);
473
+
}
474
+
}
475
+
return;
476
+
};
477
+
478
+
// Verify none of the manifest v3 configuration options are used.
0 commit comments