Skip to content

Commit eba54a7

Browse files
committed
fix(config): VSCode workspace $schema resolultion
- VSCode workspaces resolve 'somepath' as relative to root - this causes "ENOENT" - specifying path as explicitly relative fixes this issue
1 parent 75ed568 commit eba54a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/generator-cli/src/app/services/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ConfigService {
1111
public readonly configFile = path.resolve(this.cwd, 'openapitools.json')
1212

1313
private readonly defaultConfig = {
14-
$schema: 'node_modules/@openapitools/openapi-generator-cli/config.schema.json',
14+
$schema: './node_modules/@openapitools/openapi-generator-cli/config.schema.json',
1515
spaces: 2,
1616
'generator-cli': {
1717
version: undefined,

0 commit comments

Comments
 (0)