Skip to content

Commit e220f93

Browse files
committed
Remove extra blank line after oneOf type declaration
The modelOneOf template had a double blank line between the type declaration and the FromJSON function.
1 parent 3035ab0 commit e220f93

4 files changed

Lines changed: 0 additions & 4 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
{{/hasImports}}
2222
{{>modelOneOfInterfaces}}
2323

24-
2524
export function {{classname}}FromJSON(json: any): {{classname}} {
2625
return {{classname}}FromJSONTyped(json, false);
2726
}

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestArrayResponse.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
* @export
3434
*/
3535
export type TestArrayResponse = Array<TestA> | Array<TestB> | Array<string>;
36-
3736
export function TestArrayResponseFromJSON(json: any): TestArrayResponse {
3837
return TestArrayResponseFromJSONTyped(json, false);
3938
}

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestDiscriminatorResponse.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
* @export
3434
*/
3535
export type TestDiscriminatorResponse = OptionOne | OptionTwo;
36-
3736
export function TestDiscriminatorResponseFromJSON(json: any): TestDiscriminatorResponse {
3837
return TestDiscriminatorResponseFromJSONTyped(json, false);
3938
}

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
* @export
3434
*/
3535
export type TestResponse = TestA | TestB | string;
36-
3736
export function TestResponseFromJSON(json: any): TestResponse {
3837
return TestResponseFromJSONTyped(json, false);
3938
}

0 commit comments

Comments
 (0)