mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 02:25:20 +00:00
Make "Index" a reserved word (#6000)
Some APIs have a model called "Index" which would create a file "Index.ts" which would override "index.ts" on case-insensitive file systems (e.g. macOS, some Windows versions). Make "Index" a reserved word to prevent this clash.
This commit is contained in:
parent
63b4429775
commit
b431d65099
@ -76,6 +76,7 @@ sidebar_label: typescript-fetch
|
||||
<li>HTTPHeaders</li>
|
||||
<li>HTTPMethod</li>
|
||||
<li>HTTPQuery</li>
|
||||
<li>Index</li>
|
||||
<li>JSONApiResponse</li>
|
||||
<li>Middleware</li>
|
||||
<li>ModelPropertyNaming</li>
|
||||
|
@ -327,6 +327,9 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege
|
||||
this.reservedWords.add("VoidApiResponse");
|
||||
this.reservedWords.add("BlobApiResponse");
|
||||
this.reservedWords.add("TextApiResponse");
|
||||
// "Index" would create a file "Index.ts" which on case insensitive filesystems
|
||||
// would override our "index.js" file
|
||||
this.reservedWords.add("Index");
|
||||
}
|
||||
|
||||
private boolean getUseSingleRequestParameter() {
|
||||
|
Loading…
Reference in New Issue
Block a user