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.

test: add snapshots for schema name transform tests

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+192
+3
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/transforms-schemas-name/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type { ClientOptions, Comment, GetUsersData, GetUsersResponse, GetUsersResponses, Post, PostPostsData, PostPostsResponse, PostPostsResponses, User, UserProfile } from './types.gen';
+61
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/transforms-schemas-name/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 7 + export type User = { 8 + id?: string; 9 + name?: string; 10 + profile?: UserProfile; 11 + }; 12 + 13 + export type UserProfile = { 14 + bio?: string; 15 + avatar?: string; 16 + }; 17 + 18 + export type Post = { 19 + id?: string; 20 + title?: string; 21 + author?: User; 22 + comments?: Array<Comment>; 23 + }; 24 + 25 + export type Comment = { 26 + id?: string; 27 + text?: string; 28 + author?: User; 29 + }; 30 + 31 + export type GetUsersData = { 32 + body?: never; 33 + path?: never; 34 + query?: never; 35 + url: '/users'; 36 + }; 37 + 38 + export type GetUsersResponses = { 39 + /** 40 + * Success 41 + */ 42 + 200: User; 43 + }; 44 + 45 + export type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses]; 46 + 47 + export type PostPostsData = { 48 + body?: Post; 49 + path?: never; 50 + query?: never; 51 + url: '/posts'; 52 + }; 53 + 54 + export type PostPostsResponses = { 55 + /** 56 + * Created 57 + */ 58 + 201: Post; 59 + }; 60 + 61 + export type PostPostsResponse = PostPostsResponses[keyof PostPostsResponses];
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-schemas-name/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type { ClientOptions, Comment, GetUsersData, GetUsersResponse, GetUsersResponses, Post, PostPostsData, PostPostsResponse, PostPostsResponses, User, UserProfile } from './types.gen';
+61
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-schemas-name/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 7 + export type User = { 8 + id?: string; 9 + name?: string; 10 + profile?: UserProfile; 11 + }; 12 + 13 + export type UserProfile = { 14 + bio?: string; 15 + avatar?: string; 16 + }; 17 + 18 + export type Post = { 19 + id?: string; 20 + title?: string; 21 + author?: User; 22 + comments?: Array<Comment>; 23 + }; 24 + 25 + export type Comment = { 26 + id?: string; 27 + text?: string; 28 + author?: User; 29 + }; 30 + 31 + export type GetUsersData = { 32 + body?: never; 33 + path?: never; 34 + query?: never; 35 + url: '/users'; 36 + }; 37 + 38 + export type GetUsersResponses = { 39 + /** 40 + * Success 41 + */ 42 + 200: User; 43 + }; 44 + 45 + export type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses]; 46 + 47 + export type PostPostsData = { 48 + body?: Post; 49 + path?: never; 50 + query?: never; 51 + url: '/posts'; 52 + }; 53 + 54 + export type PostPostsResponses = { 55 + /** 56 + * Created 57 + */ 58 + 201: Post; 59 + }; 60 + 61 + export type PostPostsResponse = PostPostsResponses[keyof PostPostsResponses];
+3
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-schemas-name/index.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type { ClientOptions, Comment, GetUsersData, GetUsersResponse, GetUsersResponses, Post, PostPostsData, PostPostsResponse, PostPostsResponses, User, UserProfile } from './types.gen';
+61
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-schemas-name/types.gen.ts
··· 1 + // This file is auto-generated by @hey-api/openapi-ts 2 + 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 7 + export type User = { 8 + id?: string; 9 + name?: string; 10 + profile?: UserProfile; 11 + }; 12 + 13 + export type UserProfile = { 14 + bio?: string; 15 + avatar?: string; 16 + }; 17 + 18 + export type Post = { 19 + id?: string; 20 + title?: string; 21 + author?: User; 22 + comments?: Array<Comment>; 23 + }; 24 + 25 + export type Comment = { 26 + id?: string; 27 + text?: string; 28 + author?: User; 29 + }; 30 + 31 + export type GetUsersData = { 32 + body?: never; 33 + path?: never; 34 + query?: never; 35 + url: '/users'; 36 + }; 37 + 38 + export type GetUsersResponses = { 39 + /** 40 + * Success 41 + */ 42 + 200: User; 43 + }; 44 + 45 + export type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses]; 46 + 47 + export type PostPostsData = { 48 + body?: Post; 49 + path?: never; 50 + query?: never; 51 + url: '/posts'; 52 + }; 53 + 54 + export type PostPostsResponses = { 55 + /** 56 + * Created 57 + */ 58 + 201: Post; 59 + }; 60 + 61 + export type PostPostsResponse = PostPostsResponses[keyof PostPostsResponses];