File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
packages/openapi-generator Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -3961,7 +3961,7 @@ export const route = h.httpRoute({
39613961 200: t.literal('OK'),
39623962 },
39633963});
3964- `
3964+ ` ;
39653965
39663966testCase ( "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
40654065testCase ( "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
41994199testCase ( "route with overriden comments in union" , ROUTE_WITH_OVERRIDEN_COMMENTS_IN_UNION , {
42004200 openapi : "3.0.3" ,
You can’t perform that action at this time.
0 commit comments