···729729export type $OpenApiTs = {
730730 '/api/v{api-version}/descriptions/': {
731731 post: {
732732- req: {
733733- /**
734734- * Testing backticks in string: `backticks` and ```multiple backticks``` should work
735735- */
736736- parameterWithBackticks?: string;
737737- /**
738738- * Testing multiline comments in string: First line
739739- * Second line
740740- *
741741- * Fourth line
742742- */
743743- parameterWithBreaks?: string;
744744- /**
745745- * Testing expression placeholders in string: ${expression} should work
746746- */
747747- parameterWithExpressionPlaceholders?: string;
748748- /**
749749- * Testing quotes in string: 'single quote''' and "double quotes""" should work
750750- */
751751- parameterWithQuotes?: string;
752752- /**
753753- * Testing reserved characters in string: * inline * and ** inline ** should work
754754- */
755755- parameterWithReservedCharacters?: string;
756756- /**
757757- * Testing slashes in string: \backwards\\\ and /forwards/// should work
758758- */
759759- parameterWithSlashes?: string;
760760- };
732732+ req: CallWithDescriptionsData;
761733 };
762734 };
763735 '/api/v{api-version}/parameters/{parameterPath}': {
764736 post: {
765765- req: {
766766- /**
767767- * This is the parameter that is sent as request body
768768- */
769769- parameterBody: string;
770770- /**
771771- * This is the parameter that goes into the form data
772772- */
773773- parameterForm: string;
774774- /**
775775- * This is the parameter that goes into the header
776776- */
777777- parameterHeader: string;
778778- /**
779779- * This is the parameter that goes into the path
780780- */
781781- parameterPath: string;
782782- /**
783783- * This is the parameter that goes into the query params
784784- */
785785- parameterQuery: string;
786786- };
737737+ req: CallWithParametersData;
787738 };
788739 };
789740 '/api/v{api-version}/parameters/{parameter.path.1}/{parameter-path-2}/{PARAMETER-PATH-3}': {
790741 post: {
791791- req: {
792792- /**
793793- * This is the parameter with a reserved keyword
794794- */
795795- _default?: string;
796796- /**
797797- * This is the parameter that is sent as request body
798798- */
799799- parameterBody: string;
800800- /**
801801- * This is the parameter that goes into the request form data
802802- */
803803- parameterForm: string;
804804- /**
805805- * This is the parameter that goes into the request header
806806- */
807807- parameterHeader: string;
808808- /**
809809- * This is the parameter that goes into the path
810810- */
811811- parameterPath1?: string;
812812- /**
813813- * This is the parameter that goes into the path
814814- */
815815- parameterPath2?: string;
816816- /**
817817- * This is the parameter that goes into the path
818818- */
819819- parameterPath3?: string;
820820- /**
821821- * This is the parameter that goes into the request query params
822822- */
823823- parameterQuery: string;
824824- };
742742+ req: CallWithWeirdParameterNamesData;
825743 };
826744 };
827745 '/api/v{api-version}/defaults': {
828746 get: {
829829- req: {
830830- /**
831831- * This is a simple boolean with default value
832832- */
833833- parameterBoolean: boolean;
834834- /**
835835- * This is a simple enum with default value
836836- */
837837- parameterEnum: 'Success' | 'Warning' | 'Error';
838838- /**
839839- * This is a simple model with default value
840840- */
841841- parameterModel: ModelWithString;
842842- /**
843843- * This is a simple number with default value
844844- */
845845- parameterNumber: number;
846846- /**
847847- * This is a simple string with default value
848848- */
849849- parameterString: string;
850850- };
747747+ req: CallWithDefaultParametersData;
851748 };
852749 post: {
853853- req: {
854854- /**
855855- * This is a simple boolean that is optional with default value
856856- */
857857- parameterBoolean?: boolean;
858858- /**
859859- * This is a simple enum that is optional with default value
860860- */
861861- parameterEnum?: 'Success' | 'Warning' | 'Error';
862862- /**
863863- * This is a simple model that is optional with default value
864864- */
865865- parameterModel?: ModelWithString;
866866- /**
867867- * This is a simple number that is optional with default value
868868- */
869869- parameterNumber?: number;
870870- /**
871871- * This is a simple string that is optional with default value
872872- */
873873- parameterString?: string;
874874- };
750750+ req: CallWithDefaultOptionalParametersData;
875751 };
876752 put: {
877877- req: {
878878- /**
879879- * This is a optional string with default
880880- */
881881- parameterOptionalStringWithDefault?: string;
882882- /**
883883- * This is a optional string with empty default
884884- */
885885- parameterOptionalStringWithEmptyDefault?: string;
886886- /**
887887- * This is a optional string with no default
888888- */
889889- parameterOptionalStringWithNoDefault?: string;
890890- /**
891891- * This is a string that can be null with default
892892- */
893893- parameterStringNullableWithDefault?: string | null;
894894- /**
895895- * This is a string that can be null with no default
896896- */
897897- parameterStringNullableWithNoDefault?: string | null;
898898- /**
899899- * This is a string with default
900900- */
901901- parameterStringWithDefault: string;
902902- /**
903903- * This is a string with empty default
904904- */
905905- parameterStringWithEmptyDefault: string;
906906- /**
907907- * This is a string with no default
908908- */
909909- parameterStringWithNoDefault: string;
910910- };
753753+ req: CallToTestOrderOfParamsData;
911754 };
912755 };
913756 '/api/v{api-version}/no-content': {
···982825 */
983826 202: ModelThatExtendsExtends;
984827 /**
985985- * Message for default response
986986- */
987987- default: ModelWithString;
988988- /**
989828 * Message for 500 error
990829 */
991830 500: ModelWithStringError;
···997836 * Message for 502 error
998837 */
999838 502: ModelWithStringError;
839839+ /**
840840+ * Message for default response
841841+ */
842842+ default: ModelWithString;
1000843 };
1001844 };
1002845 };
···1022865 };
1023866 '/api/v{api-version}/collectionFormat': {
1024867 get: {
10251025- req: {
10261026- /**
10271027- * This is an array parameter that is sent as csv format (comma-separated values)
10281028- */
10291029- parameterArrayCsv: Array<string>;
10301030- /**
10311031- * This is an array parameter that is sent as multi format (multiple parameter instances)
10321032- */
10331033- parameterArrayMulti: Array<string>;
10341034- /**
10351035- * This is an array parameter that is sent as pipes format (pipe-separated values)
10361036- */
10371037- parameterArrayPipes: Array<string>;
10381038- /**
10391039- * This is an array parameter that is sent as ssv format (space-separated values)
10401040- */
10411041- parameterArraySsv: Array<string>;
10421042- /**
10431043- * This is an array parameter that is sent as tsv format (tab-separated values)
10441044- */
10451045- parameterArrayTsv: Array<string>;
10461046- };
868868+ req: CollectionFormatData;
1047869 };
1048870 };
1049871 '/api/v{api-version}/types': {
1050872 get: {
10511051- req: {
10521052- /**
10531053- * This is a number parameter
10541054- */
10551055- id?: number;
10561056- /**
10571057- * This is an array parameter
10581058- */
10591059- parameterArray: Array<string>;
10601060- /**
10611061- * This is a boolean parameter
10621062- */
10631063- parameterBoolean: boolean;
10641064- /**
10651065- * This is a dictionary parameter
10661066- */
10671067- parameterDictionary: {
10681068- [key: string]: string;
10691069- };
10701070- /**
10711071- * This is an enum parameter
10721072- */
10731073- parameterEnum: 'Success' | 'Warning' | 'Error';
10741074- /**
10751075- * This is a number parameter
10761076- */
10771077- parameterNumber: number;
10781078- /**
10791079- * This is an object parameter
10801080- */
10811081- parameterObject: unknown;
10821082- /**
10831083- * This is a string parameter
10841084- */
10851085- parameterString: string;
10861086- };
873873+ req: TypesData;
1087874 res: {
1088875 /**
1089876 * Response is a simple number
···1106893 };
1107894 '/api/v{api-version}/complex': {
1108895 get: {
11091109- req: {
11101110- /**
11111111- * Parameter containing object
11121112- */
11131113- parameterObject: {
11141114- first?: {
11151115- second?: {
11161116- third?: string;
11171117- };
11181118- };
11191119- };
11201120- /**
11211121- * Parameter containing reference
11221122- */
11231123- parameterReference: ModelWithString;
11241124- };
896896+ req: ComplexTypesData;
1125897 res: {
1126898 /**
1127899 * Successful response
···1158930 };
1159931 '/api/v{api-version}/error': {
1160932 post: {
11611161- req: {
11621162- /**
11631163- * Status code to return
11641164- */
11651165- status: string;
11661166- };
933933+ req: TestErrorCodeData;
1167934 res: {
1168935 /**
1169936 * Custom message: Successful response
···1190957 };
1191958 '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串': {
1192959 post: {
11931193- req: {
11941194- /**
11951195- * Dummy input param
11961196- */
11971197- nonAsciiParamæøåÆøÅöôêÊ: number;
11981198- };
960960+ req: NonAsciiæøåÆøÅöôêÊ字符串Data;
1199961 res: {
1200962 /**
1201963 * Successful response
···104104export type $OpenApiTs = {
105105 '/api/v{api-version}/defaults': {
106106 get: {
107107- req: {
108108- /**
109109- * This is a simple boolean with default value
110110- */
111111- parameterBoolean?: boolean | null;
112112- /**
113113- * This is a simple enum with default value
114114- */
115115- parameterEnum?: 'Success' | 'Warning' | 'Error';
116116- /**
117117- * This is a simple model with default value
118118- */
119119- parameterModel?: ModelWithString | null;
120120- /**
121121- * This is a simple number with default value
122122- */
123123- parameterNumber?: number | null;
124124- /**
125125- * This is a simple string with default value
126126- */
127127- parameterString?: string | null;
128128- };
107107+ req: CallWithDefaultParametersData;
129108 };
130109 post: {
131131- req: {
132132- /**
133133- * This is a simple boolean that is optional with default value
134134- */
135135- parameterBoolean?: boolean;
136136- /**
137137- * This is a simple enum that is optional with default value
138138- */
139139- parameterEnum?: 'Success' | 'Warning' | 'Error';
140140- /**
141141- * This is a simple model that is optional with default value
142142- */
143143- parameterModel?: ModelWithString;
144144- /**
145145- * This is a simple number that is optional with default value
146146- */
147147- parameterNumber?: number;
148148- /**
149149- * This is a simple string that is optional with default value
150150- */
151151- parameterString?: string;
152152- };
110110+ req: CallWithDefaultOptionalParametersData;
153111 };
154112 put: {
155155- req: {
156156- /**
157157- * This is a optional string with default
158158- */
159159- parameterOptionalStringWithDefault?: string;
160160- /**
161161- * This is a optional string with empty default
162162- */
163163- parameterOptionalStringWithEmptyDefault?: string;
164164- /**
165165- * This is a optional string with no default
166166- */
167167- parameterOptionalStringWithNoDefault?: string;
168168- /**
169169- * This is a string that can be null with default
170170- */
171171- parameterStringNullableWithDefault?: string | null;
172172- /**
173173- * This is a string that can be null with no default
174174- */
175175- parameterStringNullableWithNoDefault?: string | null;
176176- /**
177177- * This is a string with default
178178- */
179179- parameterStringWithDefault: string;
180180- /**
181181- * This is a string with empty default
182182- */
183183- parameterStringWithEmptyDefault: string;
184184- /**
185185- * This is a string with no default
186186- */
187187- parameterStringWithNoDefault: string;
188188- };
113113+ req: CallToTestOrderOfParamsData;
189114 };
190115 };
191191-};116116+};
···104104export type $OpenApiTs = {
105105 '/api/v{api-version}/defaults': {
106106 get: {
107107- req: {
108108- /**
109109- * This is a simple boolean with default value
110110- */
111111- parameterBoolean?: boolean | null;
112112- /**
113113- * This is a simple enum with default value
114114- */
115115- parameterEnum?: 'Success' | 'Warning' | 'Error';
116116- /**
117117- * This is a simple model with default value
118118- */
119119- parameterModel?: ModelWithString | null;
120120- /**
121121- * This is a simple number with default value
122122- */
123123- parameterNumber?: number | null;
124124- /**
125125- * This is a simple string with default value
126126- */
127127- parameterString?: string | null;
128128- };
107107+ req: CallWithDefaultParametersData;
129108 };
130109 post: {
131131- req: {
132132- /**
133133- * This is a simple boolean that is optional with default value
134134- */
135135- parameterBoolean?: boolean;
136136- /**
137137- * This is a simple enum that is optional with default value
138138- */
139139- parameterEnum?: 'Success' | 'Warning' | 'Error';
140140- /**
141141- * This is a simple model that is optional with default value
142142- */
143143- parameterModel?: ModelWithString;
144144- /**
145145- * This is a simple number that is optional with default value
146146- */
147147- parameterNumber?: number;
148148- /**
149149- * This is a simple string that is optional with default value
150150- */
151151- parameterString?: string;
152152- };
110110+ req: CallWithDefaultOptionalParametersData;
153111 };
154112 put: {
155155- req: {
156156- /**
157157- * This is a optional string with default
158158- */
159159- parameterOptionalStringWithDefault?: string;
160160- /**
161161- * This is a optional string with empty default
162162- */
163163- parameterOptionalStringWithEmptyDefault?: string;
164164- /**
165165- * This is a optional string with no default
166166- */
167167- parameterOptionalStringWithNoDefault?: string;
168168- /**
169169- * This is a string that can be null with default
170170- */
171171- parameterStringNullableWithDefault?: string | null;
172172- /**
173173- * This is a string that can be null with no default
174174- */
175175- parameterStringNullableWithNoDefault?: string | null;
176176- /**
177177- * This is a string with default
178178- */
179179- parameterStringWithDefault: string;
180180- /**
181181- * This is a string with empty default
182182- */
183183- parameterStringWithEmptyDefault: string;
184184- /**
185185- * This is a string with no default
186186- */
187187- parameterStringWithNoDefault: string;
188188- };
113113+ req: CallToTestOrderOfParamsData;
189114 };
190115 };
191116};