File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/openapi-generator/test/openapi Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -361,11 +361,9 @@ export const route = h.httpRoute({
361
361
path: '/internal/api/policy/v1/{applicationName}/touchpoints/{touchpoint}/rules/evaluation',
362
362
method: 'POST',
363
363
request: t.union([
364
- // First schema has NO path parameters - this was causing the bug
365
364
h.httpRequest({
366
365
body: { emptyRequest: t.boolean }
367
366
}),
368
- // Second schema HAS path parameters - these should be preserved
369
367
h.httpRequest({
370
368
params: {
371
369
applicationName: t.string,
@@ -539,7 +537,7 @@ testCase(
539
537
} ,
540
538
) ;
541
539
542
- const REAL_WORLD_POLICY_EVALUATION_ROUTE = `
540
+ const ROUTE_WITH_FULLY_DEFINED_PARAMS = `
543
541
import * as t from 'io-ts';
544
542
import * as h from '@api-ts/io-ts-http';
545
543
@@ -597,8 +595,8 @@ export const route = h.httpRoute({
597
595
` ;
598
596
599
597
testCase (
600
- 'real-world policy evaluation route with union request bodies ' ,
601
- REAL_WORLD_POLICY_EVALUATION_ROUTE ,
598
+ 'union request with consistently defined path parameters ' ,
599
+ ROUTE_WITH_FULLY_DEFINED_PARAMS ,
602
600
{
603
601
info : {
604
602
title : 'Test' ,
You can’t perform that action at this time.
0 commit comments