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.
15 lines
532 B
TypeScript
15 lines
532 B
TypeScript
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
|
|
|
const config: ConfigFile = {
|
|
schemaFile:
|
|
'https://raw.githubusercontent.com/osbuild/osbuild-composer/main/internal/cloudapi/v2/openapi.v2.yml',
|
|
apiFile: '../../src/store/cockpit/emptyComposerCloudApi.ts',
|
|
apiImport: 'emptyComposerCloudApi',
|
|
outputFile: '../../src/store/cockpit/composerCloudApi.ts',
|
|
exportName: 'composerCloudApi',
|
|
hooks: false,
|
|
unionUndefined: true,
|
|
filterEndpoints: ['postCompose', 'getComposeStatus'],
|
|
};
|
|
|
|
export default config;
|