Skip to content

Commit

Permalink
fix: 233a wrong naming of component
Browse files Browse the repository at this point in the history
  • Loading branch information
dweber019 committed Feb 14, 2024
1 parent 440fdc1 commit 8d81293
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/233a-MUST-request-must-provide-b3-tracing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ describe('MUST request must provide b3 tracing [233a]', () => {
openApi.paths['/example'].get.parameters = openApi.paths['/example'].get.parameters.filter(
(param: { $ref: string }) =>
!param['$ref'] &&
param['$ref'] !== '#/components/parameters/HeaderB3Traceid' &&
param['$ref'] !== '#/components/parameters/HeaderB3Spanid',
param['$ref'] !== '#/components/parameters/HeaderB3TraceId' &&
param['$ref'] !== '#/components/parameters/HeaderB3SpanId',
);
openApi.paths['/example'].parameters = [];
openApi.paths['/example'].parameters.push({
$ref: '#/components/parameters/HeaderB3Traceid',
$ref: '#/components/parameters/HeaderB3TraceId',
});
openApi.paths['/example'].parameters.push({
$ref: '#/components/parameters/HeaderB3Spanid',
$ref: '#/components/parameters/HeaderB3SpanId',
});

const result = await lint(openApi, 'baloise');
Expand Down

0 comments on commit 8d81293

Please sign in to comment.