Skip to content

Commit

Permalink
refactor: openapi names configure troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
Leeyoungone committed Sep 22, 2021
1 parent fd28b83 commit 5775408
Show file tree
Hide file tree
Showing 4 changed files with 526 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
IAsyncProvider,
} from "@hyperledger/cactus-common";
import {
GetKeychainEntryRequestV1,
IEndpointAuthzOptions,
IExpressRequestHandler,
IWebServiceEndpoint,
Expand All @@ -16,7 +17,6 @@ import { registerWebServiceEndpoint } from "@hyperledger/cactus-core";

import OAS from "../../json/openapi.json";
import { PluginKeychainAwsSm } from "../plugin-keychain-aws-sm";
import { GetKeychainEntryRequest } from "../generated/openapi/typescript-axios/api";

export interface IGetKeychainEntryEndpointOptions {
logLevel?: LogLevelDesc;
Expand Down Expand Up @@ -86,7 +86,7 @@ export class GetKeychainEntryV1Endpoint implements IWebServiceEndpoint {
public async handleRequest(req: Request, res: Response): Promise<void> {
const reqTag = `${this.getVerbLowerCase()} - ${this.getPath()}`;
this.log.debug(reqTag);
const { key } = req.body as GetKeychainEntryRequest;
const { key } = req.body as GetKeychainEntryRequestV1;
//const reqBody = req.body;
try {
const value = await this.options.connector.get(key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@
}
}
}
},
"400": {
"$ref": "../../../../cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_400"
},
"401": {
"$ref": "../../../../cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_401"
},
"500": {
"$ref": "../../../../cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_500"
}
}
}
Expand Down
Loading

0 comments on commit 5775408

Please sign in to comment.