api/config: Lint API configs
This fixes linting errors in configuration files for API code generation.
This commit is contained in:
parent
b8c136dccb
commit
05bc175a71
4 changed files with 20 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import type { ConfigFile } from '@rtk-query/codegen-openapi'
|
||||
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||||
|
||||
const config: ConfigFile = {
|
||||
schemaFile: '../schema/contentSources.json',
|
||||
|
|
@ -8,6 +8,6 @@ const config: ConfigFile = {
|
|||
exportName: 'contentSourcesApi',
|
||||
hooks: true,
|
||||
filterEndpoints: ['listRepositories', 'listRepositoriesRpms'],
|
||||
}
|
||||
};
|
||||
|
||||
export default config
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ConfigFile } from '@rtk-query/codegen-openapi'
|
||||
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||||
|
||||
const config: ConfigFile = {
|
||||
schemaFile: '../schema/imageBuilder.json',
|
||||
|
|
@ -7,7 +7,14 @@ const config: ConfigFile = {
|
|||
outputFile: '../../src/store/imageBuilderApi.ts',
|
||||
exportName: 'imageBuilderApi',
|
||||
hooks: true,
|
||||
filterEndpoints: ['getComposes', 'getComposeStatus', 'getComposeClones', 'getCloneStatus', 'getArchitectures', 'getPackages'],
|
||||
}
|
||||
filterEndpoints: [
|
||||
'getComposes',
|
||||
'getComposeStatus',
|
||||
'getComposeClones',
|
||||
'getCloneStatus',
|
||||
'getArchitectures',
|
||||
'getPackages',
|
||||
],
|
||||
};
|
||||
|
||||
export default config
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ConfigFile } from '@rtk-query/codegen-openapi'
|
||||
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||||
|
||||
const config: ConfigFile = {
|
||||
schemaFile: '../schema/provisioning.json',
|
||||
|
|
@ -8,6 +8,6 @@ const config: ConfigFile = {
|
|||
exportName: 'provisioningApi',
|
||||
hooks: true,
|
||||
filterEndpoints: ['getSourceList', 'getSourceUploadInfo'],
|
||||
}
|
||||
};
|
||||
|
||||
export default config
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ConfigFile } from '@rtk-query/codegen-openapi'
|
||||
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||||
|
||||
const config: ConfigFile = {
|
||||
schemaFile: '../schema/rhsm.json',
|
||||
|
|
@ -8,6 +8,6 @@ const config: ConfigFile = {
|
|||
exportName: 'rhsmApi',
|
||||
hooks: true,
|
||||
filterEndpoints: ['listActivationKeys', 'showActivationKey'],
|
||||
}
|
||||
};
|
||||
|
||||
export default config
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue