Skip to content

Commit ff5abb5

Browse files
committed
feat: inheritance added to relevant definitions
1 parent b5b753d commit ff5abb5

File tree

4 files changed

+1311
-96
lines changed

4 files changed

+1311
-96
lines changed

types/codegen/custom-templates/models.index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* tslint:disable */
22
/* eslint-disable */
3-
import { Position, Range, TextDocumentIdentifier } from './lsp'
3+
import { Position, Range, TextDocumentIdentifier } from '../../../../lsp'
44

55
{{#models}}
66
{{#model}}

types/codegen/openapitools.json

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
{
2-
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3-
"spaces": 2,
4-
"generator-cli": {
5-
"version": "7.14.0",
6-
"generators": {
7-
"typescript-fetch": {
8-
"generatorName": "typescript-fetch",
9-
"output": "#{cwd}/generated",
10-
"inputSpec": "#{cwd}/schema/chatTypes.json",
11-
"templateDir": "#{cwd}/custom-templates",
12-
"typeMappings": {
13-
"Position": "Position",
14-
"Range": "Range",
15-
"TextDocumentIdentifier": "TextDocumentIdentifier"
16-
},
17-
"importMappings": {
18-
"Position": "../../lsp",
19-
"Range": "../../lsp",
20-
"TextDocumentIdentifier": "../../lsp"
21-
},
22-
"additionalProperties": {
23-
"supportsES6": true,
24-
"modelPropertyNaming": "original",
25-
"enumPropertyNaming": "original",
26-
"npmName": "@json-schema-openapi/generated",
27-
"npmVersion": "1.0.0",
28-
"withInterfaces": true,
29-
"nullSafeAdditionalProps": true,
30-
"withoutRuntimeChecks": true,
31-
"stringEnums": true,
32-
"disallowAdditionalPropertiesIfNotPresent": false,
33-
"useSingleRequestParameter": true
34-
},
35-
"openapi-normalizer": "REF_AS_PARENT_IN_ALLOF=true"
36-
}
2+
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3+
"spaces": 2,
4+
"generator-cli": {
5+
"version": "7.14.0",
6+
"generators": {
7+
"typescript-fetch": {
8+
"generatorName": "typescript-fetch",
9+
"output": "#{cwd}/generated",
10+
"inputSpec": "#{cwd}/schema/chatTypes.json",
11+
"templateDir": "#{cwd}/custom-templates",
12+
"typeMappings": {
13+
"Position": "Position",
14+
"Range": "Range",
15+
"TextDocumentIdentifier": "TextDocumentIdentifier"
16+
},
17+
"importMappings": {
18+
"Position": "../../lsp",
19+
"Range": "../../lsp",
20+
"TextDocumentIdentifier": "../../lsp"
21+
},
22+
"additionalProperties": {
23+
"supportsES6": true,
24+
"modelPropertyNaming": "original",
25+
"enumPropertyNaming": "original",
26+
"npmName": "@json-schema-openapi/generated",
27+
"npmVersion": "1.0.0",
28+
"withInterfaces": true,
29+
"nullSafeAdditionalProps": false,
30+
"withoutRuntimeChecks": true,
31+
"stringEnums": true,
32+
"disallowAdditionalPropertiesIfNotPresent": false,
33+
"useSingleRequestParameter": true,
34+
"hasImports": true
35+
},
36+
"openapi-normalizer": "REF_AS_PARENT_IN_ALLOF=true"
37+
}
38+
}
3739
}
38-
}
39-
}
40+
}

0 commit comments

Comments
 (0)