Skip to content

Commit

Permalink
chore: fix tests (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael M authored Oct 27, 2023
2 parents c57cc04 + 6862506 commit 8507f01
Show file tree
Hide file tree
Showing 16 changed files with 111 additions and 153 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export { RefString } from './models/ref-string';
export { RefObject } from './models/ref-object';
export { Error } from './models/error';
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* To update this file run the generation tool.
*/

import { HttpClient, HttpResponse, HttpContext } from '@angular/common/http';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
Expand Down Expand Up @@ -45,11 +45,9 @@ export class NoTagService {
rb.path('id', params.id, {});
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/*+json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/*+json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Array<string>>,
Expand Down Expand Up @@ -93,11 +91,9 @@ export class NoTagService {
rb.body(params.body, 'application/json');
}

return this.http.request(rb.build({
responseType: 'text',
accept: 'text/plain',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: 'text/plain', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<string>,
Expand Down Expand Up @@ -136,11 +132,9 @@ export class NoTagService {
rb.body(params.body, 'application/json');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'text/binary',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'text/binary', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -179,11 +173,9 @@ export class NoTagService {
rb.body(params.body, 'application/json');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'image/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'image/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -222,11 +214,9 @@ export class NoTagService {
rb.body(params.body, 'text/plain');
}

return this.http.request(rb.build({
responseType: 'text',
accept: 'text/plain',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: 'text/plain', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<string>,
Expand Down Expand Up @@ -265,11 +255,9 @@ export class NoTagService {
rb.body(params.body, 'text/plain');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'text/binary',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'text/binary', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -308,11 +296,9 @@ export class NoTagService {
rb.body(params.body, 'text/plain');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'image/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'image/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -351,11 +337,9 @@ export class NoTagService {
rb.body(params.body, '*/*');
}

return this.http.request(rb.build({
responseType: 'text',
accept: 'text/plain',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: 'text/plain', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<string>,
Expand Down Expand Up @@ -394,11 +378,9 @@ export class NoTagService {
rb.body(params.body, '*/*');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'text/binary',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'text/binary', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -437,11 +419,9 @@ export class NoTagService {
rb.body(params.body, '*/*');
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'image/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'image/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -481,11 +461,9 @@ export class NoTagService {
if (params) {
}

return this.http.request(rb.build({
responseType: 'text',
accept: 'text/plain',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: 'text/plain', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<string>,
Expand Down Expand Up @@ -526,11 +504,9 @@ export class NoTagService {
if (params) {
}

return this.http.request(rb.build({
responseType: 'blob',
accept: '*/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: '*/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* To update this file run the generation tool.
*/

import { HttpClient, HttpResponse, HttpContext } from '@angular/common/http';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
Expand Down Expand Up @@ -102,11 +102,9 @@ export class Tag1Service {
rb.query('a-b', params['a-b'], {});
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'text/json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'text/json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<RefObject>,
Expand Down Expand Up @@ -245,11 +243,9 @@ export class Tag1Service {
rb.query('a-b', params['a-b'], {});
}

return this.http.request(rb.build({
responseType: 'blob',
accept: 'image/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'blob', accept: 'image/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Blob>,
Expand Down Expand Up @@ -351,11 +347,9 @@ export class Tag1Service {
rb.header('param2', params.param2, {});
}

return this.http.request(rb.build({
responseType: 'text',
accept: '*/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: '*/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
(r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* To update this file run the generation tool.
*/

import { HttpClient, HttpResponse, HttpContext } from '@angular/common/http';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
Expand Down Expand Up @@ -64,11 +64,9 @@ export class Tag2Service {
rb.body(params.body, 'application/json');
}

return this.http.request(rb.build({
responseType: 'text',
accept: '*/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: '*/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
(r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>,
Expand Down Expand Up @@ -144,11 +142,9 @@ export class Tag2Service {
rb.body(params.body, 'text/plain');
}

return this.http.request(rb.build({
responseType: 'text',
accept: '*/*',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'text', accept: '*/*', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
(r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* To update this file run the generation tool.
*/

import { HttpClient, HttpResponse, HttpContext } from '@angular/common/http';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
Expand Down Expand Up @@ -43,11 +43,9 @@ export class TagTag2Tag3Tag4Tag5Service {
if (params) {
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export { RefEnum } from './models/ref-enum';
export { RefIntEnum } from './models/ref-int-enum';
export { RefNamedIntEnum } from './models/ref-named-int-enum';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* To update this file run the generation tool.
*/

import { HttpClient, HttpResponse, HttpContext } from '@angular/common/http';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
Expand Down Expand Up @@ -51,11 +51,9 @@ export class ApiService {
if (params) {
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Containers>,
Expand Down Expand Up @@ -96,11 +94,9 @@ export class ApiService {
rb.query('param', params.param, {});
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<(ReferencedInServiceOneOf1 | ReferencedInServiceOneOf2)>,
Expand Down Expand Up @@ -140,11 +136,9 @@ export class ApiService {
if (params) {
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context,
})).pipe(
return this.http.request(
rb.build({ responseType: 'json', accept: 'application/json', context: context })
).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) =>
r as StrictHttpResponse<Disjunct>,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* tslint:disable */
/* eslint-disable */
Loading

0 comments on commit 8507f01

Please sign in to comment.