Skip to content

Commit 8b22044

Browse files
committed
chore: fix linter errors in tests
DX-592
1 parent 09f6beb commit 8b22044

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/openapi-generator/src/optimize.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,14 @@ export function optimize(schema: Schema): Schema {
218218

219219
return withComment({ type: 'array', items: optimized }, schema);
220220
} else if (schema.type === 'record') {
221-
return withComment({
222-
type: 'record',
223-
...(schema.domain ? { domain: optimize(schema.domain) } : {}),
224-
codomain: optimize(schema.codomain),
225-
}, schema)
221+
return withComment(
222+
{
223+
type: 'record',
224+
...(schema.domain ? { domain: optimize(schema.domain) } : {}),
225+
codomain: optimize(schema.codomain),
226+
},
227+
schema,
228+
);
226229
} else if (schema.type === 'tuple') {
227230
const schemas = schema.schemas.map(optimize);
228231
return withComment({ type: 'tuple', schemas }, schema);

packages/openapi-generator/test/openapi.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3961,7 +3961,7 @@ export const route = h.httpRoute({
39613961
200: t.literal('OK'),
39623962
},
39633963
});
3964-
`
3964+
`;
39653965

39663966
testCase("route with overriding comments", ROUTE_WITH_OVERRIDING_COMMENTS, {
39673967
openapi: "3.0.3",
@@ -4059,7 +4059,7 @@ export const route = h.httpRoute({
40594059
200: t.literal('OK'),
40604060
},
40614061
});
4062-
`
4062+
`;
40634063

40644064

40654065
testCase("route with nested overriding comments", ROUTE_WITH_NESTED_OVERRIDEN_COMMENTS, {
@@ -4194,7 +4194,7 @@ export const route = h.httpRoute({
41944194
200: t.literal('OK'),
41954195
},
41964196
});
4197-
`
4197+
`;
41984198

41994199
testCase("route with overriden comments in union", ROUTE_WITH_OVERRIDEN_COMMENTS_IN_UNION, {
42004200
openapi: "3.0.3",

0 commit comments

Comments
 (0)