Skip to content

Commit

Permalink
fix: changes requested on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss committed Feb 21, 2022
1 parent 230cc28 commit 5d7e3cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export class Oas2HeadersConverter extends HeadersConverter<OpenAPIV2.Document> {
protected convertHeaderParam(
headerParam: LocationParam<OpenAPIV2.Parameter>
): Header {
return {
name: headerParam.param.name,
value: this.oas2ValueSerializer.serialize(headerParam) as string
};
return this.createHeader(
headerParam.param.name,
this.oas2ValueSerializer.serialize(headerParam) as string
);
}

protected getSecuritySchemes():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ export class Oas3HeadersConverter extends HeadersConverter<OpenAPIV3.Document> {
param,
value
}: LocationParam<OpenAPIV3.ParameterObject>): Header {
return {
name: param.name,
value: decodeURIComponent(
return this.createHeader(
param.name,
decodeURIComponent(
this.uriTemplator.substitute(`{x${param.explode ? '*' : ''}}`, {
x: value
})
)
};
);
}

protected getSecuritySchemes():
Expand Down

0 comments on commit 5d7e3cf

Please sign in to comment.