chore: rename features.openapi and features.mockServer to theme (#995)

This commit is contained in:
Anton Kozachuk
2023-01-23 15:06:53 +02:00
committed by GitHub
parent 8fa9a359f1
commit 0f8b2ad1bd
13 changed files with 189 additions and 134 deletions

View File

@@ -36,10 +36,10 @@ export function getObjectOrJSON(
}
break;
default: {
if (config.configFile) {
if (config) {
process.stderr.write(`Found ${config.configFile} and using theme.openapi options`);
return config['features.openapi']; // FIXME: rename features.openapi to theme.openapi after global renaming inside repo.
return config.theme.openapi ? config.theme.openapi : {};
}
return {};
}