@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
15 lines (14 loc) • 478 B
JavaScript
export class JsonOperationPathsMap extends Map {
constructor() {
super(...arguments);
this.$kind = "operationPaths";
this.$isJsonDocument = true;
this.getKey = (method, path) => `${method}-${path}`;
}
setOperationPath(operationPath) {
// if (operationPath.method !== OperationVerbs.CUSTOM) {
const key = this.getKey(operationPath.method, operationPath.path);
this.set(key, operationPath);
// }
}
}