这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions dev/openapi-ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,26 @@ export default defineConfig(() => {
},
// name: 'foo',
output: [
// {
// // case: 'snake_case',
// clean: true,
// fileName: {
// // case: 'snake_case',
// // name: '{{name}}.renamed',
// suffix: '.meh',
// },
// // format: 'prettier',
// importFileExtension: '.ts',
// // indexFile: false,
// // lint: 'eslint',
// path: path.resolve(__dirname, '.gen'),
// tsConfigPath: path.resolve(
// __dirname,
// 'tsconfig',
// 'tsconfig.nodenext.json',
// ),
// },
'.gen',
{
// case: 'snake_case',
// clean: true,
// fileName: {
// // case: 'snake_case',
// // name: '{{name}}.renamed',
// suffix: '.meh',
// },
// format: 'prettier',
// importFileExtension: '.ts',
// indexFile: false,
// lint: 'eslint',
path: path.resolve(__dirname, '.gen'),
tsConfigPath: path.resolve(
__dirname,
'tsconfig',
'tsconfig.nodenext.json',
),
},
// '.gen',
],
parser: {
filters: {
Expand Down Expand Up @@ -216,7 +216,7 @@ export default defineConfig(() => {
{
// baseUrl: false,
// exportFromIndex: true,
name: '@hey-api/client-fetch',
name: '@hey-api/client-nuxt',
// runtimeConfigPath: path.resolve(__dirname, 'hey-api.ts'),
// runtimeConfigPath: './src/hey-api.ts',
// strictBaseUrl: true,
Expand Down Expand Up @@ -249,7 +249,7 @@ export default defineConfig(() => {
// },
},
{
asClass: true,
// asClass: true,
// auth: false,
// classNameBuilder: '{{name}}',
// classNameBuilder: '{{name}}Service',
Expand All @@ -260,7 +260,7 @@ export default defineConfig(() => {
// fields.unwrap('path')
// },
// include...
instance: true,
// instance: true,
name: '@hey-api/sdk',
// operationId: false,
// paramsStructure: 'flat',
Expand Down
66 changes: 10 additions & 56 deletions examples/openapi-ts-angular-common/src/client/sdk.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ export const addPet = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet',
...options,
headers: {
Expand All @@ -123,12 +118,7 @@ export const updatePet = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet',
...options,
headers: {
Expand All @@ -152,12 +142,7 @@ export const findPetsByStatus = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet/findByStatus',
...options,
});
Expand All @@ -177,12 +162,7 @@ export const findPetsByTags = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet/findByTags',
...options,
});
Expand All @@ -202,12 +182,7 @@ export const deletePet = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet/{petId}',
...options,
});
Expand All @@ -228,14 +203,8 @@ export const getPetById = <ThrowOnError extends boolean = true>(
>({
responseStyle: 'data',
security: [
{
name: 'api_key',
type: 'apiKey',
},
{
scheme: 'bearer',
type: 'http',
},
{ name: 'api_key', type: 'apiKey' },
{ scheme: 'bearer', type: 'http' },
],
url: '/pet/{petId}',
...options,
Expand All @@ -256,12 +225,7 @@ export const updatePetWithForm = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet/{petId}',
...options,
});
Expand All @@ -282,12 +246,7 @@ export const uploadFile = <ThrowOnError extends boolean = true>(
>({
bodySerializer: null,
responseStyle: 'data',
security: [
{
scheme: 'bearer',
type: 'http',
},
],
security: [{ scheme: 'bearer', type: 'http' }],
url: '/pet/{petId}/uploadImage',
...options,
headers: {
Expand All @@ -311,12 +270,7 @@ export const getInventory = <ThrowOnError extends boolean = true>(
'data'
>({
responseStyle: 'data',
security: [
{
name: 'api_key',
type: 'apiKey',
},
],
security: [{ name: 'api_key', type: 'apiKey' }],
url: '/store/inventory',
...options,
});
Expand Down
Loading
Loading