Skip to content

Commit

Permalink
fix(config): VSCode workspace $schema resolultion
Browse files Browse the repository at this point in the history
- VSCode workspaces resolve 'somepath' as relative to root
- this causes "ENOENT"
- specifying path as explicitly relative fixes this issue
  • Loading branch information
ermik committed Oct 14, 2021
1 parent 75ed568 commit eba54a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator-cli/src/app/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ConfigService {
public readonly configFile = path.resolve(this.cwd, 'openapitools.json')

private readonly defaultConfig = {
$schema: 'node_modules/@openapitools/openapi-generator-cli/config.schema.json',
$schema: './node_modules/@openapitools/openapi-generator-cli/config.schema.json',
spaces: 2,
'generator-cli': {
version: undefined,
Expand Down

0 comments on commit eba54a7

Please sign in to comment.