Skip to content

Commit 49a2d2b

Browse files
committed
Merge pull request #38 from duartepatriani/fix-angular1-responsestatus
fixed conditional usging text instead number
2 parents f309abf + ba1e6f6 commit 49a2d2b

File tree

1 file changed

+2
-2
lines changed
  • src/NSwag.CodeGeneration/CodeGenerators/TypeScript/Templates

1 file changed

+2
-2
lines changed

src/NSwag.CodeGeneration/CodeGenerators/TypeScript/Templates/AngularJS.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// The Angular client template is currently NOT TESTET!
1+
// The Angular client template is currently NOT TESTET!
22

33
<if(hasOperations)>
44
<if(generateClientInterfaces)>
@@ -83,7 +83,7 @@ export class <class> <if(generateClientInterfaces)>implements I<class> <endif>{
8383
var status = response.status;
8484

8585
<operation.Responses:{response |
86-
if (status === "<response.StatusCode>") {
86+
if (status === <response.StatusCode>) {
8787
<if(response.HasType)>
8888
var result<response.StatusCode>: <response.Type> = null;
8989
<if(response.TypeIsDate)>

0 commit comments

Comments
 (0)