Skip to content

Commit 2ba494e

Browse files
authored
Merge pull request #4 from SingularityX-ai/fix/logs
Update OpenAPIHelper.js
2 parents d62d2da + 1430bb9 commit 2ba494e

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "penify-oapi-codegen",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A JavaScript library to convert OpenAPI schema to Postman collection and generate sample code.",
55
"main": "src/index.js",
66
"scripts": {

src/OpenAPIHelper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class OpenAPIHelper {
2626

2727
const generateForAll = (request, operationId) => {
2828
codegen.getLanguageList().forEach(lang => {
29-
console.log(`Generating code for ${lang.key}...`);
3029
lang.variants.forEach(vari => {
3130
codegen.convert(lang.key, vari.key, request, {}, (error, snippet) => {
3231
if (error) {

src/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ const guid = uuidv4();
6565

6666
const postmanOutputPath = path.resolve(`/tmp/openapi_schema_postman_${guid}.json`);
6767

68-
console.log("Executing step 1.");
68+
console.log("Parsing Schema File.");
6969
OpenAPIHelper.convertOpenAPIToPostman(resolvedOpenAPIPath, postmanOutputPath);
70-
console.log("Executing step 2.");
70+
console.log("Generating sample codes for your code routes.");
7171
OpenAPIHelper.generateSampleCode(postmanOutputPath, language, variant);
72-
console.log("Executing step 3.");
72+
console.log("Stiching the new Schema.");
7373
OpenAPIHelper.addSampleCodeToOpenAPI(resolvedOpenAPIPath, outputAPIPath);
74-
75-
console.log('Process completed successfully.');
74+
console.log('Successfully udpated the schema.');

0 commit comments

Comments
 (0)