The api config supports pulling in the openapi schema's via a url, so there isn't a need to pull this in manually and just run the code generation. We also need to remove the `openshift-virt` target since this was removed from image-builder-crc.
14 lines
488 B
TypeScript
14 lines
488 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile: 'https://console.redhat.com/api/provisioning/v1/openapi.json',
|
|
apiFile: '../../src/store/service/emptyProvisioningApi.ts',
|
|
apiImport: 'emptyProvisioningApi',
|
|
outputFile: '../../src/store/service/provisioningApi.ts',
|
|
exportName: 'provisioningApi',
|
|
hooks: true,
|
|
unionUndefined: true,
|
|
filterEndpoints: ['getSourceList', 'getSourceUploadInfo'],
|
|
};
|
|
|
|
export default config;
|