fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2752 from hey-api/fix/valibot-symbol-meta

fix(valibot): provide resourceType in symbol meta

authored by

Lubos and committed by
GitHub
02400196 e897ee58

+1011 -117
+2
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default-class/@angular/common.gen.ts
··· 40 40 41 41 /** 42 42 * Body should not be unknown 43 + * 43 44 * Body should not be unknown 44 45 */ 45 46 public postApiVbyApiVersionBody<ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>): HttpRequest<unknown> { ··· 465 466 466 467 /** 467 468 * Body should not be unknown 469 + * 468 470 * Body should not be unknown 469 471 */ 470 472 public postApiVbyApiVersionBody<ThrowOnError extends boolean = false>(options: () => Options<PostApiVbyApiVersionBodyData, ThrowOnError> | undefined) {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default-class/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+2
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default/@angular/common.gen.ts
··· 305 305 306 306 /** 307 307 * Body should not be unknown 308 + * 308 309 * Body should not be unknown 309 310 */ 310 311 export const postApiVbyApiVersionBodyRequest = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>): HttpRequest<unknown> => { ··· 549 550 550 551 /** 551 552 * Body should not be unknown 553 + * 552 554 * Body should not be unknown 553 555 */ 554 556 export const postApiVbyApiVersionBodyResource = <ThrowOnError extends boolean = false>(options: () => Options<PostApiVbyApiVersionBodyData, ThrowOnError> | undefined) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = true>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
··· 461 461 462 462 /** 463 463 * Body should not be unknown 464 + * 464 465 * Body should not be unknown 465 466 */ 466 467 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, Options<PostApiVbyApiVersionBodyData>, PostApiVbyApiVersionBodyError> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts
··· 514 514 515 515 /** 516 516 * Body should not be unknown 517 + * 517 518 * Body should not be unknown 518 519 */ 519 520 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
··· 274 274 275 275 /** 276 276 * Body should not be unknown 277 + * 277 278 * Body should not be unknown 278 279 */ 279 280 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/@tanstack/angular-query-experimental.gen.ts
··· 513 513 514 514 /** 515 515 * Body should not be unknown 516 + * 516 517 * Body should not be unknown 517 518 */ 518 519 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/@tanstack/react-query.gen.ts
··· 514 514 515 515 /** 516 516 * Body should not be unknown 517 + * 517 518 * Body should not be unknown 518 519 */ 519 520 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
··· 274 274 275 275 /** 276 276 * Body should not be unknown 277 + * 277 278 * Body should not be unknown 278 279 */ 279 280 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/@tanstack/react-query.gen.ts
··· 513 513 514 514 /** 515 515 * Body should not be unknown 516 + * 516 517 * Body should not be unknown 517 518 */ 518 519 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/@tanstack/solid-query.gen.ts
··· 514 514 515 515 /** 516 516 * Body should not be unknown 517 + * 517 518 * Body should not be unknown 518 519 */ 519 520 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
··· 274 274 275 275 /** 276 276 * Body should not be unknown 277 + * 277 278 * Body should not be unknown 278 279 */ 279 280 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/@tanstack/solid-query.gen.ts
··· 513 513 514 514 /** 515 515 * Body should not be unknown 516 + * 516 517 * Body should not be unknown 517 518 */ 518 519 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/@tanstack/svelte-query.gen.ts
··· 514 514 515 515 /** 516 516 * Body should not be unknown 517 + * 517 518 * Body should not be unknown 518 519 */ 519 520 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
··· 274 274 275 275 /** 276 276 * Body should not be unknown 277 + * 277 278 * Body should not be unknown 278 279 */ 279 280 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/@tanstack/svelte-query.gen.ts
··· 513 513 514 514 /** 515 515 * Body should not be unknown 516 + * 516 517 * Body should not be unknown 517 518 */ 518 519 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/@tanstack/vue-query.gen.ts
··· 514 514 515 515 /** 516 516 * Body should not be unknown 517 + * 517 518 * Body should not be unknown 518 519 */ 519 520 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
··· 274 274 275 275 /** 276 276 * Body should not be unknown 277 + * 277 278 * Body should not be unknown 278 279 */ 279 280 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/@tanstack/vue-query.gen.ts
··· 513 513 514 514 /** 515 515 * Body should not be unknown 516 + * 516 517 * Body should not be unknown 517 518 */ 518 519 export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
+1
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
··· 263 263 264 264 /** 265 265 * Body should not be unknown 266 + * 266 267 * Body should not be unknown 267 268 */ 268 269 export const postApiVbyApiVersionBody = <ThrowOnError extends boolean = false>(options: Options<PostApiVbyApiVersionBodyData, ThrowOnError>) => {
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts
··· 384 384 385 385 /** 386 386 * This is a deprecated model with a deprecated property 387 + * 387 388 * @deprecated 388 389 */ 389 390 export type DeprecatedModel = { 390 391 /** 391 392 * This is a deprecated property 393 + * 392 394 * @deprecated 393 395 */ 394 396 prop?: string; ··· 1250 1252 headers: { 1251 1253 /** 1252 1254 * This parameter is deprecated 1255 + * 1253 1256 * @deprecated 1254 1257 */ 1255 1258 parameter: DeprecatedModel | null;
+1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts
··· 396 396 397 397 /** 398 398 * This is a deprecated model with a deprecated property 399 + * 399 400 * @deprecated 400 401 */ 401 402 export const vDeprecatedModel = v.object({
+7
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-properties-required-by-default/types.gen.ts
··· 782 782 readonly uniqueId: string | null; 783 783 /** 784 784 * Deprecated name field (use FirstName and LastName instead). 785 + * 785 786 * @deprecated 786 787 */ 787 788 name: string | null; ··· 987 988 readonly uniqueId: string | null; 988 989 /** 989 990 * Deprecated name field (use FirstName and LastName instead). 991 + * 990 992 * @deprecated 991 993 */ 992 994 name: string | null; ··· 1362 1364 uniqueId?: string | null; 1363 1365 /** 1364 1366 * Deprecated full name field (use FirstName and LastName instead). 1367 + * 1365 1368 * @deprecated 1366 1369 */ 1367 1370 name?: string | null; ··· 2292 2295 shareCustomerProfiles: boolean; 2293 2296 /** 2294 2297 * Legacy global unique identifier for the location (deprecated). 2298 + * 2295 2299 * @deprecated 2296 2300 */ 2297 2301 globalId: string | null; ··· 5035 5039 customerId: number; 5036 5040 /** 5037 5041 * Deprecated name field (use FirstName and LastName instead). 5042 + * 5038 5043 * @deprecated 5039 5044 */ 5040 5045 name: string | null; ··· 5202 5207 customerId: number; 5203 5208 /** 5204 5209 * Deprecated name field (use FirstName and LastName instead). 5210 + * 5205 5211 * @deprecated 5206 5212 */ 5207 5213 name: string | null; ··· 5736 5742 shareCustomerProfiles: boolean; 5737 5743 /** 5738 5744 * Legacy global unique identifier for the location (deprecated). 5745 + * 5739 5746 * @deprecated 5740 5747 */ 5741 5748 globalId: string | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts
··· 390 390 391 391 /** 392 392 * This is a deprecated model with a deprecated property 393 + * 393 394 * @deprecated 394 395 */ 395 396 export type DeprecatedModel = { 396 397 /** 397 398 * This is a deprecated property 399 + * 398 400 * @deprecated 399 401 */ 400 402 prop?: string; ··· 1269 1271 headers: { 1270 1272 /** 1271 1273 * This parameter is deprecated 1274 + * 1272 1275 * @deprecated 1273 1276 */ 1274 1277 parameter: DeprecatedModel | null;
+1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts
··· 405 405 406 406 /** 407 407 * This is a deprecated model with a deprecated property 408 + * 408 409 * @deprecated 409 410 */ 410 411 export const vDeprecatedModel = v.object({
+27
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/webhooks/types.gen.ts
··· 43 43 object: { 44 44 /** 45 45 * The session ID. 46 + * 46 47 * @deprecated 47 48 */ 48 49 id?: number; 49 50 /** 50 51 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 52 + * 51 53 * @deprecated 52 54 */ 53 55 uuid?: string; ··· 135 137 object: { 136 138 /** 137 139 * The session ID. 140 + * 138 141 * @deprecated 139 142 */ 140 143 id?: number; 141 144 /** 142 145 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 146 + * 143 147 * @deprecated 144 148 */ 145 149 uuid?: string; ··· 398 402 object: { 399 403 /** 400 404 * The session ID. 405 + * 401 406 * @deprecated 402 407 */ 403 408 id: string; ··· 582 587 object: { 583 588 /** 584 589 * The session ID. 590 + * 585 591 * @deprecated 586 592 */ 587 593 id?: number; 588 594 /** 589 595 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 596 + * 590 597 * @deprecated 591 598 */ 592 599 uuid?: string; ··· 751 758 object: { 752 759 /** 753 760 * The session ID. 761 + * 754 762 * @deprecated 755 763 */ 756 764 id: string; ··· 936 944 object: { 937 945 /** 938 946 * The session ID. 947 + * 939 948 * @deprecated 940 949 */ 941 950 id: string; ··· 1010 1019 object: { 1011 1020 /** 1012 1021 * The session's ID. 1022 + * 1013 1023 * @deprecated 1014 1024 */ 1015 1025 id: string; ··· 1164 1174 object: { 1165 1175 /** 1166 1176 * The session ID. 1177 + * 1167 1178 * @deprecated 1168 1179 */ 1169 1180 id: string; ··· 1264 1275 object: { 1265 1276 /** 1266 1277 * The session ID. 1278 + * 1267 1279 * @deprecated 1268 1280 */ 1269 1281 id?: number; 1270 1282 /** 1271 1283 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 1284 + * 1272 1285 * @deprecated 1273 1286 */ 1274 1287 uuid?: string; ··· 1353 1366 object: { 1354 1367 /** 1355 1368 * The session ID. 1369 + * 1356 1370 * @deprecated 1357 1371 */ 1358 1372 id?: number; 1359 1373 /** 1360 1374 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 1375 + * 1361 1376 * @deprecated 1362 1377 */ 1363 1378 uuid?: string; ··· 1777 1792 timezone: string; 1778 1793 /** 1779 1794 * Recording file List 1795 + * 1780 1796 * List of recording file. 1781 1797 */ 1782 1798 recording_files: Array<{ ··· 1986 2002 object: { 1987 2003 /** 1988 2004 * The session ID. 2005 + * 1989 2006 * @deprecated 1990 2007 */ 1991 2008 id?: number; 1992 2009 /** 1993 2010 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 2011 + * 1994 2012 * @deprecated 1995 2013 */ 1996 2014 uuid?: string; ··· 2135 2153 timezone: string; 2136 2154 /** 2137 2155 * Recording file List 2156 + * 2138 2157 * List of recording file. 2139 2158 */ 2140 2159 recording_files: Array<{ ··· 2203 2222 }>; 2204 2223 /** 2205 2224 * Recording file List 2225 + * 2206 2226 * List of recording file. 2207 2227 */ 2208 2228 participant_audio_files?: Array<{ ··· 2279 2299 }>; 2280 2300 /** 2281 2301 * Recording file List 2302 + * 2282 2303 * List of recording file. 2283 2304 */ 2284 2305 participant_video_files?: Array<{ ··· 2988 3009 object: { 2989 3010 /** 2990 3011 * The session ID. 3012 + * 2991 3013 * @deprecated 2992 3014 */ 2993 3015 id?: number; 2994 3016 /** 2995 3017 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 3018 + * 2996 3019 * @deprecated 2997 3020 */ 2998 3021 uuid?: string; ··· 3081 3104 object: { 3082 3105 /** 3083 3106 * The session ID. 3107 + * 3084 3108 * @deprecated 3085 3109 */ 3086 3110 id?: number; 3087 3111 /** 3088 3112 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 3113 + * 3089 3114 * @deprecated 3090 3115 */ 3091 3116 uuid?: string; ··· 3173 3198 object: { 3174 3199 /** 3175 3200 * The session ID. 3201 + * 3176 3202 * @deprecated 3177 3203 */ 3178 3204 id?: number; 3179 3205 /** 3180 3206 * The session's universally unique identifier (UUID). Each session instance generates a session UUID. 3207 + * 3181 3208 * @deprecated 3182 3209 */ 3183 3210 uuid?: string;
+3
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3-types-PascalCase/types.gen.ts.snap
··· 380 380 381 381 /** 382 382 * This is a deprecated model with a deprecated property 383 + * 383 384 * @deprecated 384 385 */ 385 386 export type DeprecatedModel = { 386 387 /** 387 388 * This is a deprecated property 389 + * 388 390 * @deprecated 389 391 */ 390 392 prop?: string; ··· 1190 1192 headers: { 1191 1193 /** 1192 1194 * This parameter is deprecated 1195 + * 1193 1196 * @deprecated 1194 1197 */ 1195 1198 parameter: DeprecatedModel;
+3
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/types.gen.ts.snap
··· 380 380 381 381 /** 382 382 * This is a deprecated model with a deprecated property 383 + * 383 384 * @deprecated 384 385 */ 385 386 export type DeprecatedModel = { 386 387 /** 387 388 * This is a deprecated property 389 + * 388 390 * @deprecated 389 391 */ 390 392 prop?: string; ··· 1190 1192 headers: { 1191 1193 /** 1192 1194 * This parameter is deprecated 1195 + * 1193 1196 * @deprecated 1194 1197 */ 1195 1198 parameter: DeprecatedModel;
+3
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_types/types.gen.ts.snap
··· 380 380 381 381 /** 382 382 * This is a deprecated model with a deprecated property 383 + * 383 384 * @deprecated 384 385 */ 385 386 export type DeprecatedModel = { 386 387 /** 387 388 * This is a deprecated property 389 + * 388 390 * @deprecated 389 391 */ 390 392 prop?: string; ··· 1190 1192 headers: { 1191 1193 /** 1192 1194 * This parameter is deprecated 1195 + * 1193 1196 * @deprecated 1194 1197 */ 1195 1198 parameter: DeprecatedModel;
+3
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_types_no_tree/types.gen.ts.snap
··· 380 380 381 381 /** 382 382 * This is a deprecated model with a deprecated property 383 + * 383 384 * @deprecated 384 385 */ 385 386 export type DeprecatedModel = { 386 387 /** 387 388 * This is a deprecated property 389 + * 388 390 * @deprecated 389 391 */ 390 392 prop?: string; ··· 1190 1192 headers: { 1191 1193 /** 1192 1194 * This parameter is deprecated 1195 + * 1193 1196 * @deprecated 1194 1197 */ 1195 1198 parameter: DeprecatedModel;
+8 -1
packages/openapi-ts-tests/main/test/openapi-ts.config.ts
··· 219 219 // classNameBuilder: '{{name}}Service', 220 220 // classStructure: 'off', 221 221 // client: false, 222 + // getSignature: ({ fields, signature, operation }) => { 223 + // // ... 224 + // fields.unwrap('path') 225 + // }, 222 226 // include... 223 227 // instance: true, 224 228 name: '@hey-api/sdk', 225 229 // operationId: false, 226 - // params: 'experiment', 230 + // params_EXPERIMENTAL: 'experiment', 227 231 // responseStyle: 'data', 232 + // signature: 'auto', 233 + // signature: 'client', 234 + // signature: 'object', 228 235 // transformer: '@hey-api/transformers', 229 236 // transformer: true, 230 237 // validator: {
+182
packages/openapi-ts-tests/specs/3.1.x/sdk-signatures.yaml
··· 1 + openapi: 3.1.0 2 + info: 3 + title: SDK signatures 4 + version: 1.0.0 5 + paths: 6 + /no-params: 7 + get: 8 + operationId: noParams 9 + summary: No parameters 10 + responses: 11 + '200': 12 + description: OK 13 + /one-path/{id}: 14 + get: 15 + operationId: onePath 16 + summary: One path parameter 17 + parameters: 18 + - name: id 19 + in: path 20 + required: true 21 + schema: 22 + type: string 23 + responses: 24 + '200': 25 + description: OK 26 + /one-query: 27 + get: 28 + operationId: oneQuery 29 + summary: One query parameter 30 + parameters: 31 + - name: search 32 + in: query 33 + schema: 34 + type: string 35 + responses: 36 + '200': 37 + description: OK 38 + /multiple-params/{id}: 39 + post: 40 + operationId: multipleParams 41 + summary: Path, query, header, and body 42 + parameters: 43 + - name: id 44 + in: path 45 + required: true 46 + schema: 47 + type: string 48 + - name: filter 49 + in: query 50 + schema: 51 + type: string 52 + - name: X-Request-Id 53 + in: header 54 + schema: 55 + type: string 56 + requestBody: 57 + required: true 58 + content: 59 + application/json: 60 + schema: 61 + type: object 62 + properties: 63 + foo: 64 + type: string 65 + responses: 66 + '200': 67 + description: OK 68 + /conflict/{foo}: 69 + get: 70 + operationId: conflict 71 + summary: Conflicting parameter names 72 + parameters: 73 + - name: foo 74 + in: path 75 + required: true 76 + schema: 77 + type: string 78 + - name: foo 79 + in: query 80 + schema: 81 + type: string 82 + - name: foo 83 + in: header 84 + schema: 85 + type: string 86 + responses: 87 + '200': 88 + description: OK 89 + /body-only: 90 + post: 91 + operationId: bodyOnly 92 + summary: Only body parameter 93 + requestBody: 94 + required: true 95 + content: 96 + application/json: 97 + schema: 98 + type: object 99 + properties: 100 + bar: 101 + type: string 102 + responses: 103 + '200': 104 + description: OK 105 + /optional-params: 106 + get: 107 + operationId: optionalParams 108 + summary: Optional query and header 109 + parameters: 110 + - name: q 111 + in: query 112 + required: false 113 + schema: 114 + type: string 115 + - name: X-Optional 116 + in: header 117 + required: false 118 + schema: 119 + type: string 120 + responses: 121 + '200': 122 + description: OK 123 + /reserved-keywords/{default}: 124 + get: 125 + operationId: reservedKeywords 126 + summary: Reserved keyword as parameter 127 + parameters: 128 + - name: default 129 + in: path 130 + required: true 131 + schema: 132 + type: string 133 + - name: default 134 + in: query 135 + schema: 136 + type: string 137 + responses: 138 + '200': 139 + description: OK 140 + /non-ascii/{æøå}: 141 + get: 142 + operationId: nonAscii 143 + summary: Non-ASCII parameter names 144 + parameters: 145 + - name: æøå 146 + in: path 147 + required: true 148 + schema: 149 + type: string 150 + - name: öôê 151 + in: query 152 + schema: 153 + type: string 154 + responses: 155 + '200': 156 + description: OK 157 + /array-params: 158 + get: 159 + operationId: arrayParams 160 + summary: Array parameters 161 + parameters: 162 + - name: tags 163 + in: query 164 + schema: 165 + type: array 166 + items: 167 + type: string 168 + responses: 169 + '200': 170 + description: OK 171 + /cookie-param: 172 + get: 173 + operationId: cookieParam 174 + summary: Cookie parameter 175 + parameters: 176 + - name: session 177 + in: cookie 178 + schema: 179 + type: string 180 + responses: 181 + '200': 182 + description: OK
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 439 439 440 440 /** 441 441 * This is a deprecated model with a deprecated property 442 + * 442 443 * @deprecated 443 444 */ 444 445 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 448 448 449 449 /** 450 450 * This is a deprecated model with a deprecated property 451 + * 451 452 * @deprecated 452 453 */ 453 454 export const zDeprecatedModel = z.object({
+1
packages/openapi-ts/src/generate/__tests__/class.test.ts
··· 96 96 }, 97 97 '@hey-api/sdk': { 98 98 api: { 99 + createOperationComment: () => undefined, 99 100 getSelector: () => [], 100 101 }, 101 102 config: {
+3
packages/openapi-ts/src/generate/__tests__/core.test.ts
··· 111 111 }, 112 112 '@hey-api/sdk': { 113 113 api: { 114 + createOperationComment: () => undefined, 114 115 getSelector: () => [], 115 116 }, 116 117 config: { ··· 268 269 }, 269 270 '@hey-api/sdk': { 270 271 api: { 272 + createOperationComment: () => undefined, 271 273 getSelector: () => [], 272 274 }, 273 275 config: { ··· 408 410 }, 409 411 '@hey-api/sdk': { 410 412 api: { 413 + createOperationComment: () => undefined, 411 414 getSelector: () => [], 412 415 }, 413 416 config: {
+1
packages/openapi-ts/src/generate/legacy/__tests__/index.test.ts
··· 95 95 }, 96 96 '@hey-api/sdk': { 97 97 api: { 98 + createOperationComment: () => undefined, 98 99 getSelector: () => [], 99 100 }, 100 101 config: {
+1
packages/openapi-ts/src/generate/legacy/__tests__/output.test.ts
··· 108 108 }, 109 109 '@hey-api/sdk': { 110 110 api: { 111 + createOperationComment: () => undefined, 111 112 getSelector: () => [], 112 113 }, 113 114 config: {
+10
packages/openapi-ts/src/overrides.d.ts
··· 17 17 * Name of the plugin that registered this symbol. 18 18 */ 19 19 pluginName?: string; 20 + /** 21 + * Type of resource this symbol represents. 22 + */ 23 + resourceType?: 24 + | 'operation' 25 + | 'parameter' 26 + | 'requestBody' 27 + | 'schema' 28 + | 'server' 29 + | 'webhook'; 20 30 } 21 31 }
+3 -6
packages/openapi-ts/src/plugins/@angular/common/httpRequests.ts
··· 7 7 import { stringCase } from '../../../utils/stringCase'; 8 8 import { getClientPlugin } from '../../@hey-api/client-core/utils'; 9 9 import { operationClasses } from '../../@hey-api/sdk/operation'; 10 - import { 11 - createOperationComment, 12 - isOperationOptionsRequired, 13 - } from '../../shared/utils/operation'; 10 + import { isOperationOptionsRequired } from '../../shared/utils/operation'; 14 11 import type { AngularCommonPlugin } from './types'; 15 12 16 13 interface AngularRequestClassEntry { ··· 283 280 284 281 return tsc.methodDeclaration({ 285 282 accessLevel: 'public', 286 - comment: createOperationComment({ operation }), 283 + comment: sdkPlugin.api.createOperationComment({ operation }), 287 284 name: methodName, 288 285 parameters: [ 289 286 { ··· 339 336 const dataType = symbolDataType?.placeholder || 'unknown'; 340 337 341 338 return tsc.constVariable({ 342 - comment: createOperationComment({ operation }), 339 + comment: sdkPlugin.api.createOperationComment({ operation }), 343 340 exportConst: symbol.exported, 344 341 expression: tsc.arrowFunction({ 345 342 parameters: [
+3 -6
packages/openapi-ts/src/plugins/@angular/common/httpResources.ts
··· 6 6 import { tsc } from '../../../tsc'; 7 7 import { stringCase } from '../../../utils/stringCase'; 8 8 import { operationClasses } from '../../@hey-api/sdk/operation'; 9 - import { 10 - createOperationComment, 11 - isOperationOptionsRequired, 12 - } from '../../shared/utils/operation'; 9 + import { isOperationOptionsRequired } from '../../shared/utils/operation'; 13 10 import type { AngularCommonPlugin } from './types'; 14 11 15 12 interface AngularServiceClassEntry { ··· 364 361 365 362 return tsc.methodDeclaration({ 366 363 accessLevel: 'public', 367 - comment: createOperationComment({ operation }), 364 + comment: sdkPlugin.api.createOperationComment({ operation }), 368 365 name: methodName, 369 366 parameters: [ 370 367 { ··· 416 413 const dataType = symbolDataType?.placeholder || 'unknown'; 417 414 418 415 return tsc.constVariable({ 419 - comment: createOperationComment({ operation }), 416 + comment: sdkPlugin.api.createOperationComment({ operation }), 420 417 exportConst: symbol.exported, 421 418 expression: tsc.arrowFunction({ 422 419 parameters: [
+2
packages/openapi-ts/src/plugins/@hey-api/schemas/__tests__/schemas.test.ts
··· 99 99 }, 100 100 '@hey-api/sdk': { 101 101 api: { 102 + createOperationComment: () => undefined, 102 103 getSelector: () => [], 103 104 }, 104 105 config: { ··· 262 263 }, 263 264 '@hey-api/sdk': { 264 265 api: { 266 + createOperationComment: () => undefined, 265 267 getSelector: () => [], 266 268 }, 267 269 config: {
+4
packages/openapi-ts/src/plugins/@hey-api/sdk/__tests__/plugin.test.ts
··· 101 101 }, 102 102 '@hey-api/sdk': { 103 103 api: { 104 + createOperationComment: () => undefined, 104 105 getSelector: () => [], 105 106 }, 106 107 config: { ··· 336 337 }, 337 338 '@hey-api/sdk': { 338 339 api: { 340 + createOperationComment: () => undefined, 339 341 getSelector: () => [], 340 342 }, 341 343 config: { ··· 493 495 }, 494 496 '@hey-api/sdk': { 495 497 api: { 498 + createOperationComment: () => undefined, 496 499 getSelector: () => [], 497 500 }, 498 501 config: { ··· 653 656 }, 654 657 '@hey-api/sdk': { 655 658 api: { 659 + createOperationComment: () => undefined, 656 660 getSelector: () => [], 657 661 }, 658 662 config: {
+8
packages/openapi-ts/src/plugins/@hey-api/sdk/api.ts
··· 1 1 import type { Selector } from '@hey-api/codegen-core'; 2 2 3 3 import type { Plugin } from '../../types'; 4 + import { createOperationComment } from './comment'; 4 5 5 6 type SelectorType = 6 7 | 'buildClientParams' ··· 14 15 | 'urlSearchParamsBodySerializer'; 15 16 16 17 export type IApi = { 18 + createOperationComment: typeof createOperationComment; 17 19 /** 18 20 * @param type Selector type. 19 21 * @param value Depends on `type`: ··· 33 35 34 36 export class Api implements IApi { 35 37 constructor(public meta: Plugin.Name<'@hey-api/sdk'>) {} 38 + 39 + createOperationComment( 40 + ...args: Parameters<typeof createOperationComment> 41 + ): ReturnType<typeof createOperationComment> { 42 + return createOperationComment(...args); 43 + } 36 44 37 45 getSelector(...args: ReadonlyArray<string | undefined>): Selector { 38 46 return [this.meta.name, ...(args as Selector)];
+37
packages/openapi-ts/src/plugins/@hey-api/sdk/comment.ts
··· 1 + import type { IR } from '../../../ir/types'; 2 + import type { Comments } from '../../../tsc'; 3 + import { escapeComment } from '../../../utils/escape'; 4 + 5 + export const createOperationComment = ({ 6 + operation, 7 + }: { 8 + operation: IR.OperationObject; 9 + }): Comments | undefined => { 10 + const comments: Array<string> = []; 11 + 12 + if (operation.summary) { 13 + comments.push(escapeComment(operation.summary)); 14 + } 15 + 16 + if (operation.description) { 17 + if (comments.length) { 18 + comments.push(''); // Add an empty line between summary and description 19 + } 20 + 21 + comments.push(escapeComment(operation.description)); 22 + } 23 + 24 + if (operation.deprecated) { 25 + if (comments.length) { 26 + comments.push(''); // Add an empty line before deprecated 27 + } 28 + 29 + comments.push('@deprecated'); 30 + } 31 + 32 + if (!comments.length) { 33 + return; 34 + } 35 + 36 + return comments; 37 + };
+3
packages/openapi-ts/src/plugins/@hey-api/sdk/operation.ts
··· 13 13 import { getClientPlugin } from '../client-core/utils'; 14 14 import { operationAuth } from './auth'; 15 15 import { nuxtTypeComposable, nuxtTypeDefault } from './constants'; 16 + // import { getSignatureParameters } from './signature'; 16 17 import type { HeyApiSdkPlugin } from './types'; 17 18 import { createRequestValidator, createResponseValidator } from './validator'; 18 19 ··· 199 200 operation: IR.OperationObject; 200 201 plugin: HeyApiSdkPlugin['Instance']; 201 202 }): OperationParameters => { 203 + // getSignatureParameters({ operation }); 204 + 202 205 const result: OperationParameters = { 203 206 argNames: [], 204 207 fields: [],
+3 -6
packages/openapi-ts/src/plugins/@hey-api/sdk/plugin.ts
··· 3 3 import { clientFolderAbsolutePath } from '../../../generate/client'; 4 4 import { tsc } from '../../../tsc'; 5 5 import { stringCase } from '../../../utils/stringCase'; 6 - import { 7 - createOperationComment, 8 - isOperationOptionsRequired, 9 - } from '../../shared/utils/operation'; 6 + import { isOperationOptionsRequired } from '../../shared/utils/operation'; 10 7 import { getClientPlugin } from '../client-core/utils'; 11 8 import { nuxtTypeComposable, nuxtTypeDefault } from './constants'; 12 9 import { ··· 213 210 }); 214 211 const functionNode = tsc.methodDeclaration({ 215 212 accessLevel: 'public', 216 - comment: createOperationComment({ operation }), 213 + comment: plugin.api.createOperationComment({ operation }), 217 214 isStatic: isAngularClient ? false : !plugin.config.instance, 218 215 name: entry.methodName, 219 216 parameters: opParameters.parameters, ··· 407 404 selector: plugin.api.getSelector('function', operation.id), 408 405 }); 409 406 const node = tsc.constVariable({ 410 - comment: createOperationComment({ operation }), 407 + comment: plugin.api.createOperationComment({ operation }), 411 408 exportConst: true, 412 409 expression: tsc.arrowFunction({ 413 410 parameters: opParameters.parameters,
+142
packages/openapi-ts/src/plugins/@hey-api/sdk/signature.ts
··· 1 + import type { IR } from '../../../ir/types'; 2 + 3 + type Location = keyof IR.ParametersObject | 'body'; 4 + 5 + type SignatureParameter = { 6 + name: string; 7 + /** 8 + * If the name was modified due to conflicts, this holds the original name. 9 + */ 10 + originalName?: string; 11 + /** 12 + * JSON Path to the parameter within the operation object. 13 + */ 14 + path: ReadonlyArray<string | number>; 15 + }; 16 + 17 + type SignatureParameters = Record<string, SignatureParameter>; 18 + 19 + type SignatureField = 20 + | { 21 + kind: 'inline'; 22 + value: SignatureParameter; 23 + } 24 + | { 25 + kind: 'object'; 26 + value: SignatureParameters; 27 + }; 28 + 29 + export type Signature = ReadonlyArray<SignatureField>; 30 + 31 + export const sig1 = [ 32 + { 33 + kind: 'value', 34 + name: 'id', 35 + value: { 36 + name: 'id', 37 + path: ['path', 'id'], 38 + }, 39 + }, 40 + { 41 + kind: 'object', 42 + name: '', 43 + value: { 44 + limit: { 45 + name: 'limit', 46 + path: ['query', 'limit'], 47 + }, 48 + search: { 49 + name: 'search', 50 + path: ['query', 'search'], 51 + }, 52 + }, 53 + }, 54 + ]; 55 + 56 + /** 57 + * Collects and resolves all operation parameters for flattened SDK signatures. 58 + * - Prefixes all conflicting names with their location (e.g. path_foo, query_foo) 59 + * - Returns a flat map of resolved parameter names to their metadata 60 + */ 61 + export const getSignatureParameters = ({ 62 + operation, 63 + }: { 64 + operation: IR.OperationObject; 65 + }): SignatureParameters | undefined => { 66 + // TODO: add cookies 67 + const locations = [ 68 + 'header', 69 + 'path', 70 + 'query', 71 + ] as const satisfies ReadonlyArray<Location>; 72 + const nameToLocations: Record<string, Set<Location>> = {}; 73 + 74 + const addParameter = (name: string, location: Location): void => { 75 + if (!nameToLocations[name]) { 76 + nameToLocations[name] = new Set(); 77 + } 78 + nameToLocations[name].add(location); 79 + }; 80 + 81 + for (const location of locations) { 82 + const parameters = operation.parameters?.[location]; 83 + if (parameters) { 84 + for (const key in parameters) { 85 + const parameter = parameters[key]!; 86 + addParameter(parameter.name, location); 87 + } 88 + } 89 + } 90 + 91 + if (operation.body) { 92 + // TODO: we might want to spread body too if there's only a single object 93 + // TODO: we might want to alias body for more ergonomic naming, e.g. user 94 + // if the type is User 95 + addParameter('body', 'body'); 96 + } 97 + 98 + const conflicts = new Set<string>(); 99 + for (const name in nameToLocations) { 100 + if (nameToLocations[name]!.size > 1) { 101 + conflicts.add(name); 102 + } 103 + } 104 + 105 + const signatureParameters: SignatureParameters = {}; 106 + 107 + for (const location of locations) { 108 + const parameters = operation.parameters?.[location]; 109 + if (parameters) { 110 + for (const key in parameters) { 111 + const parameter = parameters[key]!; 112 + const originalName = parameter.name; 113 + const name = conflicts.has(originalName) 114 + ? `${location}_${originalName}` 115 + : originalName; 116 + const signatureParameter: SignatureParameter = { 117 + name, 118 + path: [location, key], 119 + }; 120 + if (name !== originalName) { 121 + signatureParameter.originalName = originalName; 122 + } 123 + signatureParameters[name] = signatureParameter; 124 + } 125 + } 126 + } 127 + 128 + if (operation.body) { 129 + // never alias body 130 + signatureParameters.body = { 131 + name: 'body', 132 + path: ['body'], 133 + }; 134 + } 135 + 136 + if (!Object.keys(signatureParameters).length) { 137 + return undefined; 138 + } 139 + 140 + console.log(signatureParameters); 141 + return signatureParameters; 142 + };
+1
packages/openapi-ts/src/plugins/@hey-api/typescript/__tests__/plugin.test.ts
··· 99 99 }, 100 100 '@hey-api/sdk': { 101 101 api: { 102 + createOperationComment: () => undefined, 102 103 getSelector: () => [], 103 104 }, 104 105 config: {
+3 -2
packages/openapi-ts/src/plugins/@pinia/colada/mutationOptions.ts
··· 3 3 import type { IR } from '../../../ir/types'; 4 4 import { buildName } from '../../../openApi/shared/utils/name'; 5 5 import { tsc } from '../../../tsc'; 6 - import { createOperationComment } from '../../shared/utils/operation'; 7 6 import { handleMeta } from './meta'; 8 7 import type { PiniaColadaPlugin } from './types'; 9 8 import { useTypeData, useTypeError, useTypeResponse } from './useType'; ··· 108 107 }); 109 108 } 110 109 110 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 111 + 111 112 const symbolMutationOptions = plugin.registerSymbol({ 112 113 exported: true, 113 114 name: buildName({ ··· 117 118 }); 118 119 const statement = tsc.constVariable({ 119 120 comment: plugin.config.comments 120 - ? createOperationComment({ operation }) 121 + ? sdkPlugin.api.createOperationComment({ operation }) 121 122 : undefined, 122 123 exportConst: symbolMutationOptions.exported, 123 124 expression: tsc.arrowFunction({
+3 -2
packages/openapi-ts/src/plugins/@pinia/colada/queryOptions.ts
··· 4 4 import { buildName } from '../../../openApi/shared/utils/name'; 5 5 import { tsc } from '../../../tsc'; 6 6 import { 7 - createOperationComment, 8 7 hasOperationSse, 9 8 isOperationOptionsRequired, 10 9 } from '../../shared/utils/operation'; ··· 148 147 }); 149 148 } 150 149 150 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 151 + 151 152 const symbolQueryOptionsFn = plugin.registerSymbol({ 152 153 exported: true, 153 154 name: buildName({ ··· 163 164 }); 164 165 const statement = tsc.constVariable({ 165 166 comment: plugin.config.comments 166 - ? createOperationComment({ operation }) 167 + ? sdkPlugin.api.createOperationComment({ operation }) 167 168 : undefined, 168 169 exportConst: symbolQueryOptionsFn.exported, 169 170 expression: tsc.callExpression({
+4 -5
packages/openapi-ts/src/plugins/@tanstack/query-core/infiniteQueryOptions.ts
··· 5 5 import { buildName } from '../../../openApi/shared/utils/name'; 6 6 import { tsc } from '../../../tsc'; 7 7 import { tsNodeToString } from '../../../tsc/utils'; 8 - import { 9 - createOperationComment, 10 - isOperationOptionsRequired, 11 - } from '../../shared/utils/operation'; 8 + import { isOperationOptionsRequired } from '../../shared/utils/operation'; 12 9 import { handleMeta } from './meta'; 13 10 import { 14 11 createQueryKeyFunction, ··· 441 438 }); 442 439 } 443 440 441 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 442 + 444 443 const symbolInfiniteQueryOptionsFn = plugin.registerSymbol({ 445 444 exported: true, 446 445 name: buildName({ ··· 450 449 }); 451 450 const statement = tsc.constVariable({ 452 451 comment: plugin.config.comments 453 - ? createOperationComment({ operation }) 452 + ? sdkPlugin.api.createOperationComment({ operation }) 454 453 : undefined, 455 454 exportConst: symbolInfiniteQueryOptionsFn.exported, 456 455 expression: tsc.arrowFunction({
+3 -2
packages/openapi-ts/src/plugins/@tanstack/query-core/mutationOptions.ts
··· 3 3 import type { IR } from '../../../ir/types'; 4 4 import { buildName } from '../../../openApi/shared/utils/name'; 5 5 import { tsc } from '../../../tsc'; 6 - import { createOperationComment } from '../../shared/utils/operation'; 7 6 import { handleMeta } from './meta'; 8 7 import type { PluginInstance } from './types'; 9 8 import { useTypeData, useTypeError, useTypeResponse } from './useType'; ··· 98 97 }); 99 98 } 100 99 100 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 101 + 101 102 const mutationOptionsFn = 'mutationOptions'; 102 103 const expression = tsc.arrowFunction({ 103 104 parameters: [ ··· 130 131 }); 131 132 const statement = tsc.constVariable({ 132 133 comment: plugin.config.comments 133 - ? createOperationComment({ operation }) 134 + ? sdkPlugin.api.createOperationComment({ operation }) 134 135 : undefined, 135 136 exportConst: symbolMutationOptions.exported, 136 137 expression,
+3 -2
packages/openapi-ts/src/plugins/@tanstack/query-core/queryOptions.ts
··· 4 4 import { buildName } from '../../../openApi/shared/utils/name'; 5 5 import { tsc } from '../../../tsc'; 6 6 import { 7 - createOperationComment, 8 7 hasOperationSse, 9 8 isOperationOptionsRequired, 10 9 } from '../../shared/utils/operation'; ··· 153 152 }); 154 153 } 155 154 155 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 156 + 156 157 const symbolQueryOptionsFn = plugin.registerSymbol({ 157 158 exported: plugin.config.queryOptions.exported, 158 159 name: buildName({ ··· 163 164 }); 164 165 const statement = tsc.constVariable({ 165 166 comment: plugin.config.comments 166 - ? createOperationComment({ operation }) 167 + ? sdkPlugin.api.createOperationComment({ operation }) 167 168 : undefined, 168 169 exportConst: symbolQueryOptionsFn.exported, 169 170 expression: tsc.arrowFunction({
+3 -2
packages/openapi-ts/src/plugins/@tanstack/query-core/useQuery.ts
··· 2 2 import { buildName } from '../../../openApi/shared/utils/name'; 3 3 import { tsc } from '../../../tsc'; 4 4 import { 5 - createOperationComment, 6 5 hasOperationSse, 7 6 isOperationOptionsRequired, 8 7 } from '../../shared/utils/operation'; ··· 25 24 if (!('useQuery' in plugin.config)) { 26 25 return; 27 26 } 27 + 28 + const sdkPlugin = plugin.getPluginOrThrow('@hey-api/sdk'); 28 29 29 30 const symbolUseQueryFn = plugin.registerSymbol({ 30 31 exported: true, ··· 49 50 ); 50 51 const statement = tsc.constVariable({ 51 52 comment: plugin.config.comments 52 - ? createOperationComment({ operation }) 53 + ? sdkPlugin.api.createOperationComment({ operation }) 53 54 : undefined, 54 55 exportConst: symbolUseQueryFn.exported, 55 56 expression: tsc.arrowFunction({
+6
packages/openapi-ts/src/plugins/shared/types/instance.d.ts
··· 2 2 3 3 type WalkEvents = 4 4 | { 5 + _path: ReadonlyArray<string | number>; 5 6 method: keyof IR.PathItemObject; 6 7 operation: IR.OperationObject; 7 8 path: string; ··· 9 10 } 10 11 | { 11 12 $ref: string; 13 + _path: ReadonlyArray<string | number>; 12 14 name: string; 13 15 parameter: IR.ParameterObject; 14 16 type: 'parameter'; 15 17 } 16 18 | { 17 19 $ref: string; 20 + _path: ReadonlyArray<string | number>; 18 21 name: string; 19 22 requestBody: IR.RequestBodyObject; 20 23 type: 'requestBody'; 21 24 } 22 25 | { 23 26 $ref: string; 27 + _path: ReadonlyArray<string | number>; 24 28 name: string; 25 29 schema: IR.SchemaObject; 26 30 type: 'schema'; 27 31 } 28 32 | { 33 + _path: ReadonlyArray<string | number>; 29 34 server: IR.ServerObject; 30 35 type: 'server'; 31 36 } 32 37 | { 38 + _path: ReadonlyArray<string | number>; 33 39 key: string; 34 40 method: keyof IR.PathItemObject; 35 41 operation: IR.OperationObject;
+46
packages/openapi-ts/src/plugins/shared/utils/__tests__/meta.test.ts
··· 1 + import { describe, expect, it } from 'vitest'; 2 + 3 + import { pathToSymbolResourceType } from '../meta'; 4 + 5 + describe('pathToSymbolResourceType', () => { 6 + it('returns schema for components/schemas', () => { 7 + expect(pathToSymbolResourceType(['components', 'schemas', 'Pet'])).toBe( 8 + 'schema', 9 + ); 10 + }); 11 + 12 + it('returns parameter for components/parameters', () => { 13 + expect( 14 + pathToSymbolResourceType(['components', 'parameters', 'limit']), 15 + ).toBe('parameter'); 16 + }); 17 + 18 + it('returns requestBody for components/requestBodies', () => { 19 + expect( 20 + pathToSymbolResourceType(['components', 'requestBodies', 'Body']), 21 + ).toBe('requestBody'); 22 + }); 23 + 24 + it('returns operation for paths', () => { 25 + expect(pathToSymbolResourceType(['paths', '/pets', 'get'])).toBe( 26 + 'operation', 27 + ); 28 + }); 29 + 30 + it('returns server for servers', () => { 31 + expect(pathToSymbolResourceType(['servers', 0])).toBe('server'); 32 + }); 33 + 34 + it('returns webhook for webhooks', () => { 35 + expect(pathToSymbolResourceType(['webhooks', 'onEvent'])).toBe('webhook'); 36 + }); 37 + 38 + it('returns undefined for unknown paths', () => { 39 + expect( 40 + pathToSymbolResourceType(['components', 'unknown', 'foo']), 41 + ).toBeUndefined(); 42 + expect(pathToSymbolResourceType(['random', 'value'])).toBeUndefined(); 43 + expect(pathToSymbolResourceType(['components'])).toBeUndefined(); 44 + expect(pathToSymbolResourceType([])).toBeUndefined(); 45 + }); 46 + });
+10 -1
packages/openapi-ts/src/plugins/shared/utils/instance.ts
··· 131 131 132 132 if (eventSet.has('server') && this.context.ir.servers) { 133 133 for (const server of this.context.ir.servers) { 134 - const event: WalkEvent<'server'> = { server, type: 'server' }; 134 + const event: WalkEvent<'server'> = { 135 + _path: ['servers', String(this.context.ir.servers.indexOf(server))], 136 + server, 137 + type: 'server', 138 + }; 135 139 try { 136 140 callback(event as WalkEvent<T>); 137 141 } catch (error) { ··· 144 148 for (const name in this.context.ir.components.schemas) { 145 149 const event: WalkEvent<'schema'> = { 146 150 $ref: `#/components/schemas/${name}`, 151 + _path: ['components', 'schemas', name], 147 152 name, 148 153 schema: this.context.ir.components.schemas[name]!, 149 154 type: 'schema', ··· 160 165 for (const name in this.context.ir.components.parameters) { 161 166 const event: WalkEvent<'parameter'> = { 162 167 $ref: `#/components/parameters/${name}`, 168 + _path: ['components', 'parameters', name], 163 169 name, 164 170 parameter: this.context.ir.components.parameters[name]!, 165 171 type: 'parameter', ··· 179 185 for (const name in this.context.ir.components.requestBodies) { 180 186 const event: WalkEvent<'requestBody'> = { 181 187 $ref: `#/components/requestBodies/${name}`, 188 + _path: ['components', 'requestBodies', name], 182 189 name, 183 190 requestBody: this.context.ir.components.requestBodies[name]!, 184 191 type: 'requestBody', ··· 198 205 for (const _method in pathItem) { 199 206 const method = _method as keyof typeof pathItem; 200 207 const event: WalkEvent<'operation'> = { 208 + _path: ['paths', path, method], 201 209 method, 202 210 operation: pathItem[method]!, 203 211 path, ··· 218 226 for (const _method in webhook) { 219 227 const method = _method as keyof typeof webhook; 220 228 const event: WalkEvent<'webhook'> = { 229 + _path: ['webhooks', key, method], 221 230 key, 222 231 method, 223 232 operation: webhook[method]!,
+17
packages/openapi-ts/src/plugins/shared/utils/meta.ts
··· 1 + import type { SymbolMeta } from '@hey-api/codegen-core'; 2 + 3 + export const pathToSymbolResourceType = ( 4 + path: ReadonlyArray<string | number>, 5 + ): SymbolMeta['resourceType'] => { 6 + if (path.length >= 2) { 7 + if (path[0] === 'components') { 8 + if (path[1] === 'schemas') return 'schema'; 9 + if (path[1] === 'parameters') return 'parameter'; 10 + if (path[1] === 'requestBodies') return 'requestBody'; 11 + } 12 + if (path[0] === 'paths') return 'operation'; 13 + if (path[0] === 'servers') return 'server'; 14 + if (path[0] === 'webhooks') return 'webhook'; 15 + } 16 + return; 17 + };
-24
packages/openapi-ts/src/plugins/shared/utils/operation.ts
··· 1 1 import { hasOperationDataRequired } from '../../../ir/operation'; 2 2 import type { IR } from '../../../ir/types'; 3 - import type { Comments } from '../../../tsc'; 4 - import { escapeComment } from '../../../utils/escape'; 5 3 import { getClientPlugin } from '../../@hey-api/client-core/utils'; 6 - 7 - export const createOperationComment = ({ 8 - operation, 9 - }: { 10 - operation: IR.OperationObject; 11 - }): Comments | undefined => { 12 - const comments: Array<string> = []; 13 - 14 - if (operation.summary) { 15 - comments.push(escapeComment(operation.summary)); 16 - } 17 - 18 - if (operation.description) { 19 - comments.push(escapeComment(operation.description)); 20 - } 21 - 22 - if (operation.deprecated) { 23 - comments.push('@deprecated'); 24 - } 25 - 26 - return comments.length ? comments : undefined; 27 - }; 28 4 29 5 export const isOperationOptionsRequired = ({ 30 6 context,
+6
packages/openapi-ts/src/plugins/shared/utils/schema.ts
··· 14 14 } 15 15 16 16 if (schema.description) { 17 + if (comments.length) { 18 + comments.push(''); // Add an empty line between title and description 19 + } 17 20 comments.push(escapeComment(schema.description)); 18 21 } 19 22 20 23 if (schema.deprecated) { 24 + if (comments.length) { 25 + comments.push(''); // Add an empty line before deprecated 26 + } 21 27 comments.push('@deprecated'); 22 28 } 23 29
+12
packages/openapi-ts/src/plugins/valibot/operation.ts
··· 1 1 import { operationResponsesMap } from '../../ir/operation'; 2 2 import type { IR } from '../../ir/types'; 3 3 import { buildName } from '../../openApi/shared/utils/name'; 4 + import { pathToSymbolResourceType } from '../shared/utils/meta'; 4 5 import { schemaToValibotSchema, type State } from './plugin'; 5 6 import type { ValibotPlugin } from './types'; 6 7 7 8 export const operationToValibotSchema = ({ 9 + _path, 8 10 operation, 9 11 plugin, 10 12 state, 11 13 }: { 14 + _path: ReadonlyArray<string | number>; 12 15 operation: IR.OperationObject; 13 16 plugin: ValibotPlugin['Instance']; 14 17 state: State; ··· 113 116 114 117 const symbol = plugin.registerSymbol({ 115 118 exported: true, 119 + meta: { 120 + resourceType: pathToSymbolResourceType(_path), 121 + }, 116 122 name: buildName({ 117 123 config: plugin.config.requests, 118 124 name: operation.id, ··· 120 126 selector: plugin.api.getSelector('data', operation.id), 121 127 }); 122 128 schemaToValibotSchema({ 129 + _path, 123 130 plugin, 124 131 schema: schemaData, 125 132 state, ··· 132 139 const { response } = operationResponsesMap(operation); 133 140 134 141 if (response) { 142 + const path = [..._path, 'responses']; 135 143 const symbol = plugin.registerSymbol({ 136 144 exported: true, 145 + meta: { 146 + resourceType: pathToSymbolResourceType(path), 147 + }, 137 148 name: buildName({ 138 149 config: plugin.config.responses, 139 150 name: operation.id, ··· 141 152 selector: plugin.api.getSelector('responses', operation.id), 142 153 }); 143 154 schemaToValibotSchema({ 155 + _path: path, 144 156 plugin, 145 157 schema: response, 146 158 state,
+72 -33
packages/openapi-ts/src/plugins/valibot/plugin.ts
··· 6 6 import { buildName } from '../../openApi/shared/utils/name'; 7 7 import { tsc } from '../../tsc'; 8 8 import type { StringCase, StringName } from '../../types/case'; 9 - import { refToName } from '../../utils/ref'; 9 + import { jsonPointerToPath, refToName } from '../../utils/ref'; 10 10 import { numberRegExp } from '../../utils/regexp'; 11 + import { pathToSymbolResourceType } from '../shared/utils/meta'; 11 12 import { createSchemaComment } from '../shared/utils/schema'; 12 13 import { identifiers } from './constants'; 13 14 import { ··· 32 33 nameTransformer: StringName; 33 34 } 34 35 36 + type SchemaToValibotSchemaOptions = { 37 + /** 38 + * Path to the schema in the intermediary representation. 39 + */ 40 + _path: ReadonlyArray<string | number>; 41 + plugin: ValibotPlugin['Instance']; 42 + }; 43 + 35 44 const pipesToExpression = ({ 36 45 pipes, 37 46 plugin, ··· 57 66 }; 58 67 59 68 const arrayTypeToValibotSchema = ({ 69 + _path, 60 70 plugin, 61 71 schema, 62 72 state, 63 - }: { 64 - plugin: ValibotPlugin['Instance']; 73 + }: SchemaToValibotSchemaOptions & { 65 74 schema: SchemaWithType<'array'>; 66 75 state: State; 67 76 }): ts.Expression => { ··· 80 89 functionName, 81 90 parameters: [ 82 91 unknownTypeToValibotSchema({ 92 + _path, 83 93 plugin, 84 94 schema: { 85 95 type: 'unknown', ··· 92 102 schema = deduplicateSchema({ schema }); 93 103 94 104 // at least one item is guaranteed 95 - const itemExpressions = schema.items!.map((item) => { 105 + const itemExpressions = schema.items!.map((item, index) => { 96 106 const schemaPipes = schemaToValibotSchema({ 107 + _path: [..._path, 'items', index], 97 108 plugin, 98 109 schema: item, 99 110 state, ··· 122 133 functionName, 123 134 parameters: [ 124 135 unknownTypeToValibotSchema({ 136 + _path, 125 137 plugin, 126 138 schema: { 127 139 type: 'unknown', ··· 172 184 const booleanTypeToValibotSchema = ({ 173 185 plugin, 174 186 schema, 175 - }: { 176 - plugin: ValibotPlugin['Instance']; 187 + }: SchemaToValibotSchemaOptions & { 177 188 schema: SchemaWithType<'boolean'>; 178 189 }) => { 179 190 const vSymbol = plugin.referenceSymbol( ··· 201 212 }; 202 213 203 214 const enumTypeToValibotSchema = ({ 215 + _path, 204 216 plugin, 205 217 schema, 206 - }: { 207 - plugin: ValibotPlugin['Instance']; 218 + }: SchemaToValibotSchemaOptions & { 208 219 schema: SchemaWithType<'enum'>; 209 220 }): ts.CallExpression => { 210 221 const enumMembers: Array<ts.LiteralExpression> = []; ··· 226 237 227 238 if (!enumMembers.length) { 228 239 return unknownTypeToValibotSchema({ 240 + _path, 229 241 plugin, 230 242 schema: { 231 243 type: 'unknown', ··· 265 277 266 278 const neverTypeToValibotSchema = ({ 267 279 plugin, 268 - }: { 269 - plugin: ValibotPlugin['Instance']; 280 + }: SchemaToValibotSchemaOptions & { 270 281 schema: SchemaWithType<'never'>; 271 282 }) => { 272 283 const vSymbol = plugin.referenceSymbol( ··· 283 294 284 295 const nullTypeToValibotSchema = ({ 285 296 plugin, 286 - }: { 287 - plugin: ValibotPlugin['Instance']; 297 + }: SchemaToValibotSchemaOptions & { 288 298 schema: SchemaWithType<'null'>; 289 299 }) => { 290 300 const vSymbol = plugin.referenceSymbol( ··· 302 312 const numberTypeToValibotSchema = ({ 303 313 plugin, 304 314 schema, 305 - }: { 306 - plugin: ValibotPlugin['Instance']; 315 + }: SchemaToValibotSchemaOptions & { 307 316 schema: SchemaWithType<'integer' | 'number'>; 308 317 }) => { 309 318 const format = schema.format; ··· 542 551 }; 543 552 544 553 const objectTypeToValibotSchema = ({ 554 + _path, 545 555 plugin, 546 556 schema, 547 557 state, 548 - }: { 549 - plugin: ValibotPlugin['Instance']; 558 + }: SchemaToValibotSchemaOptions & { 550 559 schema: SchemaWithType<'object'>; 551 560 state: State; 552 561 }): { ··· 563 572 const isRequired = required.includes(name); 564 573 565 574 const schemaPipes = schemaToValibotSchema({ 575 + _path: [..._path, 'properties', name], 566 576 optional: !isRequired, 567 577 plugin, 568 578 schema: property, ··· 606 616 !Object.keys(properties).length 607 617 ) { 608 618 const pipes = schemaToValibotSchema({ 619 + _path: [..._path, 'additionalProperties'], 609 620 plugin, 610 621 schema: schema.additionalProperties, 611 622 state, ··· 649 660 const stringTypeToValibotSchema = ({ 650 661 plugin, 651 662 schema, 652 - }: { 653 - plugin: ValibotPlugin['Instance']; 663 + }: SchemaToValibotSchemaOptions & { 654 664 schema: SchemaWithType<'string'>; 655 665 }) => { 656 666 const vSymbol = plugin.referenceSymbol( ··· 784 794 }; 785 795 786 796 const tupleTypeToValibotSchema = ({ 797 + _path, 787 798 plugin, 788 799 schema, 789 800 state, 790 - }: { 791 - plugin: ValibotPlugin['Instance']; 801 + }: SchemaToValibotSchemaOptions & { 792 802 schema: SchemaWithType<'tuple'>; 793 803 state: State; 794 804 }) => { ··· 821 831 } 822 832 823 833 if (schema.items) { 824 - const tupleElements = schema.items.map((item) => { 834 + const tupleElements = schema.items.map((item, index) => { 825 835 const schemaPipes = schemaToValibotSchema({ 836 + _path: [..._path, 'items', index], 826 837 plugin, 827 838 schema: item, 828 839 state, ··· 844 855 } 845 856 846 857 return unknownTypeToValibotSchema({ 858 + _path, 847 859 plugin, 848 860 schema: { 849 861 type: 'unknown', ··· 853 865 854 866 const undefinedTypeToValibotSchema = ({ 855 867 plugin, 856 - }: { 857 - plugin: ValibotPlugin['Instance']; 868 + }: SchemaToValibotSchemaOptions & { 858 869 schema: SchemaWithType<'undefined'>; 859 870 }) => { 860 871 const vSymbol = plugin.referenceSymbol( ··· 872 883 873 884 const unknownTypeToValibotSchema = ({ 874 885 plugin, 875 - }: { 876 - plugin: ValibotPlugin['Instance']; 886 + }: SchemaToValibotSchemaOptions & { 877 887 schema: SchemaWithType<'unknown'>; 878 888 }) => { 879 889 const vSymbol = plugin.referenceSymbol( ··· 891 901 892 902 const voidTypeToValibotSchema = ({ 893 903 plugin, 894 - }: { 895 - plugin: ValibotPlugin['Instance']; 904 + }: SchemaToValibotSchemaOptions & { 896 905 schema: SchemaWithType<'void'>; 897 906 }) => { 898 907 const vSymbol = plugin.referenceSymbol( ··· 909 918 }; 910 919 911 920 const schemaTypeToValibotSchema = ({ 921 + _path, 912 922 plugin, 913 923 schema, 914 924 state, 915 - }: { 916 - plugin: ValibotPlugin['Instance']; 925 + }: SchemaToValibotSchemaOptions & { 917 926 schema: IR.SchemaObject; 918 927 state: State; 919 928 }): { ··· 924 933 case 'array': 925 934 return { 926 935 expression: arrayTypeToValibotSchema({ 936 + _path, 927 937 plugin, 928 938 schema: schema as SchemaWithType<'array'>, 929 939 state, ··· 932 942 case 'boolean': 933 943 return { 934 944 expression: booleanTypeToValibotSchema({ 945 + _path, 935 946 plugin, 936 947 schema: schema as SchemaWithType<'boolean'>, 937 948 }), ··· 939 950 case 'enum': 940 951 return { 941 952 expression: enumTypeToValibotSchema({ 953 + _path, 942 954 plugin, 943 955 schema: schema as SchemaWithType<'enum'>, 944 956 }), ··· 947 959 case 'number': 948 960 return { 949 961 expression: numberTypeToValibotSchema({ 962 + _path, 950 963 plugin, 951 964 schema: schema as SchemaWithType<'integer' | 'number'>, 952 965 }), ··· 954 967 case 'never': 955 968 return { 956 969 expression: neverTypeToValibotSchema({ 970 + _path, 957 971 plugin, 958 972 schema: schema as SchemaWithType<'never'>, 959 973 }), ··· 961 975 case 'null': 962 976 return { 963 977 expression: nullTypeToValibotSchema({ 978 + _path, 964 979 plugin, 965 980 schema: schema as SchemaWithType<'null'>, 966 981 }), 967 982 }; 968 983 case 'object': 969 984 return objectTypeToValibotSchema({ 985 + _path, 970 986 plugin, 971 987 schema: schema as SchemaWithType<'object'>, 972 988 state, ··· 976 992 if (schema.format === 'int64' || schema.format === 'uint64') { 977 993 return { 978 994 expression: numberTypeToValibotSchema({ 995 + _path, 979 996 plugin, 980 997 schema: schema as SchemaWithType<'integer' | 'number'>, 981 998 }), ··· 983 1000 } 984 1001 return { 985 1002 expression: stringTypeToValibotSchema({ 1003 + _path, 986 1004 plugin, 987 1005 schema: schema as SchemaWithType<'string'>, 988 1006 }), ··· 990 1008 case 'tuple': 991 1009 return { 992 1010 expression: tupleTypeToValibotSchema({ 1011 + _path, 993 1012 plugin, 994 1013 schema: schema as SchemaWithType<'tuple'>, 995 1014 state, ··· 998 1017 case 'undefined': 999 1018 return { 1000 1019 expression: undefinedTypeToValibotSchema({ 1020 + _path, 1001 1021 plugin, 1002 1022 schema: schema as SchemaWithType<'undefined'>, 1003 1023 }), ··· 1005 1025 case 'unknown': 1006 1026 return { 1007 1027 expression: unknownTypeToValibotSchema({ 1028 + _path, 1008 1029 plugin, 1009 1030 schema: schema as SchemaWithType<'unknown'>, 1010 1031 }), ··· 1012 1033 case 'void': 1013 1034 return { 1014 1035 expression: voidTypeToValibotSchema({ 1036 + _path, 1015 1037 plugin, 1016 1038 schema: schema as SchemaWithType<'void'>, 1017 1039 }), ··· 1021 1043 1022 1044 export const schemaToValibotSchema = ({ 1023 1045 $ref, 1046 + _path = [], 1024 1047 optional, 1025 1048 plugin, 1026 1049 schema, 1027 1050 state, 1028 1051 symbol, 1029 - }: { 1052 + }: SchemaToValibotSchemaOptions & { 1030 1053 /** 1031 1054 * When $ref is supplied, a node will be emitted to the file. 1032 1055 */ ··· 1037 1060 * `.default()` which is handled in this function. 1038 1061 */ 1039 1062 optional?: boolean; 1040 - plugin: ValibotPlugin['Instance']; 1041 1063 schema: IR.SchemaObject; 1042 1064 state: State; 1043 1065 symbol?: Symbol; ··· 1072 1094 const ref = plugin.context.resolveIrRef<IR.SchemaObject>(schema.$ref); 1073 1095 const schemaPipes = schemaToValibotSchema({ 1074 1096 $ref: schema.$ref, 1097 + _path: jsonPointerToPath(schema.$ref), 1075 1098 plugin, 1076 1099 schema: ref, 1077 1100 state, ··· 1106 1129 } 1107 1130 } 1108 1131 } else if (schema.type) { 1109 - const valibotSchema = schemaTypeToValibotSchema({ plugin, schema, state }); 1132 + const valibotSchema = schemaTypeToValibotSchema({ 1133 + _path, 1134 + plugin, 1135 + schema, 1136 + state, 1137 + }); 1110 1138 anyType = valibotSchema.anyType; 1111 1139 pipes.push(valibotSchema.expression); 1112 1140 ··· 1133 1161 schema = deduplicateSchema({ schema }); 1134 1162 1135 1163 if (schema.items) { 1136 - const itemTypes = schema.items.map((item) => { 1164 + const itemTypes = schema.items.map((item, index) => { 1137 1165 const schemaPipes = schemaToValibotSchema({ 1166 + _path: [..._path, 'items', index], 1138 1167 plugin, 1139 1168 schema: item, 1140 1169 state, ··· 1171 1200 } 1172 1201 } else { 1173 1202 const schemaPipes = schemaToValibotSchema({ 1203 + _path, 1174 1204 plugin, 1175 1205 schema, 1176 1206 state, ··· 1180 1210 } else { 1181 1211 // catch-all fallback for failed schemas 1182 1212 const valibotSchema = schemaTypeToValibotSchema({ 1213 + _path, 1183 1214 plugin, 1184 1215 schema: { 1185 1216 type: 'unknown', ··· 1242 1273 if ($ref) { 1243 1274 symbol = plugin.registerSymbol({ 1244 1275 exported: true, 1276 + meta: { 1277 + resourceType: pathToSymbolResourceType(_path), 1278 + }, 1245 1279 name: buildName({ 1246 1280 config: { 1247 1281 case: state.nameCase, ··· 1298 1332 switch (event.type) { 1299 1333 case 'operation': 1300 1334 operationToValibotSchema({ 1335 + _path: event._path, 1301 1336 operation: event.operation, 1302 1337 plugin, 1303 1338 state, ··· 1306 1341 case 'parameter': 1307 1342 schemaToValibotSchema({ 1308 1343 $ref: event.$ref, 1344 + _path: event._path, 1309 1345 plugin, 1310 1346 schema: event.parameter.schema, 1311 1347 state, ··· 1314 1350 case 'requestBody': 1315 1351 schemaToValibotSchema({ 1316 1352 $ref: event.$ref, 1353 + _path: event._path, 1317 1354 plugin, 1318 1355 schema: event.requestBody.schema, 1319 1356 state, ··· 1322 1359 case 'schema': 1323 1360 schemaToValibotSchema({ 1324 1361 $ref: event.$ref, 1362 + _path: event._path, 1325 1363 plugin, 1326 1364 schema: event.schema, 1327 1365 state, ··· 1329 1367 break; 1330 1368 case 'webhook': 1331 1369 webhookToValibotSchema({ 1370 + _path: event._path, 1332 1371 operation: event.operation, 1333 1372 plugin, 1334 1373 state,
+7
packages/openapi-ts/src/plugins/valibot/webhook.ts
··· 1 1 import type { IR } from '../../ir/types'; 2 2 import { buildName } from '../../openApi/shared/utils/name'; 3 + import { pathToSymbolResourceType } from '../shared/utils/meta'; 3 4 import { schemaToValibotSchema, type State } from './plugin'; 4 5 import type { ValibotPlugin } from './types'; 5 6 6 7 export const webhookToValibotSchema = ({ 8 + _path, 7 9 operation, 8 10 plugin, 9 11 state, 10 12 }: { 13 + _path: ReadonlyArray<string | number>; 11 14 operation: IR.OperationObject; 12 15 plugin: ValibotPlugin['Instance']; 13 16 state: State; ··· 112 115 113 116 const symbol = plugin.registerSymbol({ 114 117 exported: true, 118 + meta: { 119 + resourceType: pathToSymbolResourceType(_path), 120 + }, 115 121 name: buildName({ 116 122 config: plugin.config.webhooks, 117 123 name: operation.id, ··· 119 125 selector: plugin.api.getSelector('webhook-request', operation.id), 120 126 }); 121 127 schemaToValibotSchema({ 128 + _path, 122 129 plugin, 123 130 schema: schemaData, 124 131 state,
+2
packages/openapi-ts/src/utils/__tests__/handlebars.test.ts
··· 93 93 }, 94 94 '@hey-api/sdk': { 95 95 api: { 96 + createOperationComment: () => undefined, 96 97 getSelector: () => [], 97 98 }, 98 99 config: { ··· 223 224 }, 224 225 '@hey-api/sdk': { 225 226 api: { 227 + createOperationComment: () => undefined, 226 228 getSelector: () => [], 227 229 }, 228 230 config: {
+5
packages/openapi-ts/src/utils/__tests__/parse.test.ts
··· 71 71 plugins: { 72 72 '@hey-api/sdk': { 73 73 api: { 74 + createOperationComment: () => undefined, 74 75 getSelector: () => [], 75 76 }, 76 77 config: { ··· 101 102 ...optionsCommon.plugins, 102 103 '@hey-api/sdk': { 103 104 api: { 105 + createOperationComment: () => undefined, 104 106 getSelector: () => [], 105 107 }, 106 108 config: { ··· 121 123 ...optionsCommon.plugins, 122 124 '@hey-api/sdk': { 123 125 api: { 126 + createOperationComment: () => undefined, 124 127 getSelector: () => [], 125 128 }, 126 129 config: { ··· 153 156 }, 154 157 '@hey-api/sdk': { 155 158 api: { 159 + createOperationComment: () => undefined, 156 160 getSelector: () => [], 157 161 }, 158 162 config: { ··· 185 189 }, 186 190 '@hey-api/sdk': { 187 191 api: { 192 + createOperationComment: () => undefined, 188 193 getSelector: () => [], 189 194 }, 190 195 config: {
+13 -25
packages/openapi-ts/src/utils/cli.ts
··· 2 2 3 3 import { loadPackageJson } from '../generate/tsConfig'; 4 4 5 - const logoAscii = ` 6 - db e888888e 7 - d8 Y88Y ~8b 8 - dY "" "" Yb 9 - 8 88 88 8 10 - 8 o 8 8 11 - Yb b8d eb ,b 12 - Yb_____Y ,b 13 - 8 dY 14 - 8 e 8 15 - `; 16 - 17 5 const textAscii = ` 18 6 888 | e 888~-_ 888 19 7 888___| e88~~8e Y88b / d8b 888 \\ 888 ··· 24 12 _/ 25 13 `; 26 14 27 - const asciiToLines = (ascii: string) => { 15 + const asciiToLines = ( 16 + ascii: string, 17 + options?: { 18 + padding?: number; 19 + }, 20 + ) => { 28 21 const lines: Array<string> = []; 22 + const padding = Array.from<string>({ length: options?.padding ?? 0 }).fill( 23 + '', 24 + ); 25 + lines.push(...padding); 29 26 let maxLineLength = 0; 30 27 let line = ''; 31 28 for (const char of ascii) { ··· 39 36 line += char; 40 37 } 41 38 } 39 + lines.push(...padding); 42 40 return { lines, maxLineLength }; 43 41 }; 44 42 45 43 export function printCliIntro() { 46 44 const packageJson = loadPackageJson(); 47 - const logo = asciiToLines(logoAscii); 48 - const text = asciiToLines(textAscii); 49 - const padding = Math.floor((logo.lines.length - text.lines.length) / 2); 50 - const lines = logo.lines.map((logoLine, index) => { 51 - let line = logoLine.padEnd(logo.maxLineLength); 52 - if (index >= padding && logo.lines.length - index - 1 >= padding) { 53 - line += ` ${text.lines[index - padding]}`; 54 - } 55 - return line; 56 - }); 57 - for (const line of lines) { 45 + const text = asciiToLines(textAscii, { padding: 1 }); 46 + for (const line of text.lines) { 58 47 console.log(colors.cyan(line)); 59 48 } 60 - console.log(''); 61 49 console.log(colors.gray(`${packageJson.name} v${packageJson.version}`)); 62 50 console.log(''); 63 51 }