@@ -586,7 +586,76 @@ export type Request = keyof Input;
586586"
587587`;
588588
589- exports[`Integration > Should support types variant and handle recursive schemas 1`] = `
589+ exports[`Integration > Should support types variant and handle recursive schemas 0 1`] = `
590+ "type Type1 = {
591+ name : string ;
592+ features : Type1 ;
593+ } ;
594+
595+ type SomeOf<T > = T[keyof T];
596+
597+ /** post /v1/test */
598+ type PostV1TestInput = {
599+ features : Type1 ;
600+ } ;
601+
602+ /** post /v1/test */
603+ type PostV1TestPositiveVariant1 = {
604+ status : " success" ;
605+ data : {};
606+ } ;
607+
608+ /** post /v1/test */
609+ interface PostV1TestPositiveResponseVariants {
610+ 200 : PostV1TestPositiveVariant1 ;
611+ }
612+
613+ /** post /v1/test */
614+ type PostV1TestNegativeVariant1 = {
615+ status : " error" ;
616+ error : {
617+ message: string ;
618+ };
619+ } ;
620+
621+ /** post /v1/test */
622+ interface PostV1TestNegativeResponseVariants {
623+ 400 : PostV1TestNegativeVariant1 ;
624+ }
625+
626+ export type Path = "/v1/test";
627+
628+ export type Method = "get" | "post" | "put" | "delete" | "patch";
629+
630+ export interface Input {
631+ /** @deprecated */
632+ " post /v1/test" : PostV1TestInput ;
633+ }
634+
635+ export interface PositiveResponse {
636+ /** @deprecated */
637+ " post /v1/test" : SomeOf <PostV1TestPositiveResponseVariants >;
638+ }
639+
640+ export interface NegativeResponse {
641+ /** @deprecated */
642+ " post /v1/test" : SomeOf <PostV1TestNegativeResponseVariants >;
643+ }
644+
645+ export interface EncodedResponse {
646+ /** @deprecated */
647+ " post /v1/test" : PostV1TestPositiveResponseVariants & PostV1TestNegativeResponseVariants ;
648+ }
649+
650+ export interface Response {
651+ /** @deprecated */
652+ " post /v1/test" : PositiveResponse [" post /v1/test" ] | NegativeResponse [" post /v1/test" ];
653+ }
654+
655+ export type Request = keyof Input;"
656+ `;
657+
658+ exports[`Integration > Should support types variant and handle recursive schemas 1 1`] = `
590659"type Type1 = {
591660 name : string ;
592661 features : Type1 ;
0 commit comments