Skip to content

Commit

Permalink
chore(openapi): reverted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tullis committed Sep 13, 2023
1 parent 318b230 commit f09c076
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/lib/prepareOas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,33 +205,28 @@ export default async function prepareOas(
// Checks to see if the selected file is a postman collection and throws a warning in the console depending on the command.
if (definitionVersion.specification === 'postman') {
switch (command) {
case 'openapi': {
case 'openapi':
warn(
'You are attempting to upload a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference'
);
break;
}
case 'openapi:validate': {
case 'openapi:validate':
warn(
'You are attempting to validate a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference'
);
break;
}
case 'openapi:inspect': {
case 'openapi:inspect':
warn(
'You are inspecting a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference'
);
break;
}
case 'openapi:convert': {
case 'openapi:convert':
warn(
'You are attempting to convert a Postman collection to an OpenAPI file. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference'
);
break;
}
default: {
default:
debug(`Type ${chalk.yellow('rdme help')} to see all commands`);
}
}
}

Expand Down

0 comments on commit f09c076

Please sign in to comment.